[OpenStreetMap] #5108: data layer easily overloads the browser after clicking a big feature
OpenStreetMap
trac at noreply.openstreetmap.org
Sun Feb 2 17:22:33 UTC 2014
#5108: data layer easily overloads the browser after clicking a big feature
-------------------------+-------------------------
Reporter: aseerel4c26 | Owner: rails-dev@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: website | Version:
Keywords: datalayer |
-------------------------+-------------------------
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:
* [ ] Map Notes (<a href="$get that data" title="just fetch
once">once</a>)
* [ ] Map Data (<a href="$get that data" title="just fetch
once">once</a>)
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.
--
Ticket URL: <https://trac.openstreetmap.org/ticket/5108>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the rails-dev
mailing list