iD icon indicating copy to clipboard operation
iD copied to clipboard

Persist multiple custom backgrounds

Open jidanni opened this issue 5 years ago • 10 comments

Add a Copy Custom Background URL button, placed there in Background > Custom .

Without it, the user must type in all the details when switching between the one allowed custom background and another.

With it, the user merely would need to bookmark e.g., URL https://www.openstreetmap.org/edit?editor=id&background=custom%3Ahttps%3A%2F%2Fwms.nlsc.gov.tw%2Fwms%3FVERSION%... in his browser.

Currently the user does not even know this is possible. He needs to one day browse https://osmlab.github.io/editor-layer-index/ and click around to discover the above URLs are possible.

jidanni avatar Mar 12 '20 01:03 jidanni

Currently the user does not even know this is possible

The URL parameters are documented at https://github.com/openstreetmap/iD/blob/2.x/API.md

andrewharvey avatar Mar 13 '20 09:03 andrewharvey

This is an issue with the editor-layer-index preview page, not with iD.

bhousel avatar Mar 13 '20 16:03 bhousel

This is an issue with the editor-layer-index preview page, not with iD.

That's not how I see it. The request here is the ability to have two custom sources at a time in iD. It's unrelated to the ELI.

andrewharvey avatar Mar 13 '20 22:03 andrewharvey

That's not how I see it. The request here is the ability to have two custom sources at a time in iD. It's unrelated to the ELI.

oh sorry, I think you're right. I'm still not really sure what this issue is about though.

With it, the user merely would need to bookmark e.g., URL https://www.openstreetmap.org/edit?editor=id&background=custom%3Ahttps%3A%2F%2Fwms.nlsc.gov.tw%2Fwms%3FVERSION%... in his browser.

They can do this now, right? If the url on openstretmap.org doesn't change, it might require something in the openstreetmap-website integration. I tested on our preview site, and this works, that's why I was confused.

bhousel avatar Mar 15 '20 18:03 bhousel

Maybe even better was if in the Background panel, at the bottom, there was a more general "Copy background setting URL" which would copy the url for "Bing shifted 3m to the northwest" "Custom WMS with parameters x...y...x... shifted 1m to the east" etc. etc. allowing the user to bookmark them in his browser.

jidanni avatar Mar 15 '20 23:03 jidanni

Or maybe just add note at the bottom of Background panel, saying that "these can be controlled via a URL" with a link to https://github.com/openstreetmap/iD/issues/7426#issuecomment-598619046 documentation.

jidanni avatar Mar 15 '20 23:03 jidanni

I get there are valid use cases for the custom source, but as much as possible if there is a recurring reason for using custom we should try to get those into the [editor-]layer-index as much as possible rather than workarounds like this.

andrewharvey avatar Mar 16 '20 01:03 andrewharvey

(I'm thinking that a little note to see the API doc could eliminate tedious daily workflows at the county assessor's office like

  1. switch to maxar, then with the mouse adjust the ofset.
  2. switch to bing, then with the mouse adjust the ofset.
  3. switch back to maxar, then with the mouse adjust the ofset.

using instead two bookmarks the user has saved.)

jidanni avatar Mar 16 '20 13:03 jidanni

P.S., adding the tag "waitfor-info" while blocking the user you are waiting the info from will cause the user not to get any messages about what you are waiting for.

jidanni avatar Mar 20 '20 22:03 jidanni

This seems stalled. I want o to bring up the idea.

I frequently use several custom map backrounds, most are derivatives of OSM, just different renderings, and some are very specific open data based.

I have need to frequently switch from one custom backghround layer to another. ID is not very user frendly on that.

I guess simple user interface to save several custom background maps is not hard to do?

pedjas avatar Apr 08 '24 14:04 pedjas