Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "No, don't load the data" choice #1766

Open
jidanni opened this issue Feb 24, 2018 · 13 comments
Open

Add "No, don't load the data" choice #1766

jidanni opened this issue Feb 24, 2018 · 13 comments

Comments

@jidanni
Copy link

jidanni commented Feb 24, 2018

(User clicks [x] Show data, in a high density area.)
We see

Displaying 4664 features, which might slow your browser.

Are you sure you want to load the data?

    [Load the Data]

and no No, don't load the data button. Only an [X].

So we push the X. And.... it loads the data!

@jidanni
Copy link
Author

jidanni commented Feb 24, 2018

What's worse is now the user will have to figure out how to clear their cookies,
as they can't browse osm.org ever again without their browser getting floored.

@gravitystorm
Copy link
Collaborator

I'm not sure why this was closed without comment - was there some discussion in a different channel that I missed?

@tomhughes
Copy link
Member

Well as far as I can tell the claimed "bug" doesn't actually happen anyway - the data does not load when the X is hit.

What does happen is that the data layer remains active and moving the map will cause a new load, with a new prompt that must again be cancelled.

Frankly we should just get rid of the data layer - it's pretty much unusable with the typical data density now in OSM and we have better tools (like the query tool) now,

@HolgerJeromin
Copy link
Contributor

Well as far as I can tell the claimed "bug" doesn't actually happen anyway - the data does not load when the X is hit.

I played with it and it happened one time. (something like move, wait for popup, move, click X, data loaded)
But could not reproduce.

Frankly we should just get rid of the data layer - it's pretty much unusable with the typical data density now in OSM and we have better tools (like the query tool) now,

yes

@gravitystorm
Copy link
Collaborator

Well as far as I can tell the claimed "bug" doesn't actually happen anyway - the data does not load when the X is hit.

@jidanni are you able to provide steps to reproduce this problem? I haven't managed to reproduce it either, but I suspect some combination of panning/zooming might be able to trigger this.

@gravitystorm gravitystorm reopened this Feb 26, 2018
@dieterdreist
Copy link

dieterdreist commented Feb 26, 2018 via email

@zerebubuth
Copy link
Contributor

Frankly we should just get rid of the data layer

Please don't. I'm still using the data layer pretty frequently,

Seconded. I still use the data layer, too. While the query tool is excellent and useful, there are some things which I find the data layer much better suited to.

How about moving the data layer to (and not blocking right-click on) a secondary, static site specifically for these kinds of activities? Something like debug.openstreetmap.org?

@tomhughes
Copy link
Member

I don't know what you mean about blocking right click?

Obviously we could move it but it doesn't solve the basic problem of it being unusable at anything less than about zoom 22 or so ;-) Plus we wouldn't even have the current safety of it querying any load with too many items - it would just kill the browser.

@zerebubuth
Copy link
Contributor

I don't know what you mean about blocking right click?

The map div intercepts the right-click, meaning the usual browser-provided right-click menu isn't available. This was quite useful for a very small number of us who wanted a convenient way to get the tile coordinates.

Obviously we could move it but it doesn't solve the basic problem of it being unusable at anything less than about zoom 22 or so

I was just trying to suggest a way we could preserve the current/old behaviour for the small number of us who find it useful, while the main site moves on to remove these features for the vast majority who don't. Since some of us find them useful, I though it would be nice if we could keep them around somewhere out of the way. Since neither require server-side support, we could always write our own local versions, although it would be less duplication of effort if we shared it somewhere central. And probably not onerous to host a static bunch of HTML and Javascript.

@HolgerJeromin
Copy link
Contributor

ref #1472 for "tile details" view

@tomhughes
Copy link
Member

Well we could always merge my tile details branch to put that on the custom right click menu ;-) Firefox at least will still give you the browser menu with shift click as well.

@jidanni
Copy link
Author

jidanni commented Feb 26, 2018 via email

@HolgerJeromin
Copy link
Contributor

Modern browsers have a private mode / tab which does not share cookies with the normal browser. Ideal for testing such things

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

No branches or pull requests

6 participants