Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

data layer easily overloads the browser after clicking a big feature #5108

Open
2 tasks
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Open
2 tasks

Comments

@openstreetmap-trac
Copy link

Reporter: aseerel4c26
[Submitted to the original trac issue database at 9.42pm, Saturday, 1st February 2014]

After clicking a big feature (e.g. a landuse) the map automatically zooms out to fully show this feature. Well, okay, accepted. But the problem is that after this move the data layer updates and loads data again. If the current area is a densely mapped one, then the returned data quickly gets muuuuch leading to browser hangs.

I would like to have an option to only fetch data ONCE! UI suggestion for the sidebar:

I simulated this by blocking /api/0.6/map?bbox= via AdBlock after the first load. That was really fine. Just like I would like to have it.

That would also avoid the problem that if the left sidebar was not active already, then currently after clicking a feature in the data layer the left sidebar pops in, leading to a smaller map viewport, leading to another data query at /api/0.6/map?bbox= . Which causes render work again.

That would also avoid the problem that currently the data layer state is remembered in the _osm_location cookie which, again, easily will hang your browser if you (even in another tab) go to a densely mapped area and zoom out while forgetting that data layer is still on (unexpectedly). [https://wiki.openstreetmap.org/w/index.php?title=User:Aseerel4c26/osm.org_UI_fixes_by_JS I have switched off] this cookie remembering "feature" for notes and data completely, as it was annoying to me.

That would also need one click less - for turning the data layer off again if you want to continue to do something else.

@openstreetmap-trac
Copy link
Author

Author: aseerel4c26
[Added to the original trac issue at 5.39pm, Sunday, 2nd February 2014]

by the way: as the right sidebar is totally useless it would be nice if there could be an optional direct load data once button inside the toolbox on the right. This would save opening the right sidebar just to close it again...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant