Can iD URLs contain parameters to make Bing Streetside available on load?

I am aware that URLs pointing to iD can have parameters to load iD in a certain way, ie to use a particular basemap. For example, to open South Africa CD:NGI Aerial, one can just click on:

https://www.openstreetmap.org/edit?#map=6/-28.21/25.59editor=id&background=custom%3Ahttps%3A%2F%2Faerial.openstreetmap.org.za%2Fngi-aerial%2F%7Bzoom%7D%2F%7Bx%7D%2F%7By%7D.jpg

(Source.)

I would like to create links which open iD with the Bing Streetside overlay turned on by default. This:

Are there URL parameters to achieve this?

2 Likes

One can do that on https://ideditor-release.netlify.app. Example URL: iD.

Source.

This also works with iD on openstreetmap.org:
https://www.openstreetmap.org/edit?editor=id#map=19/40.715264/-73.937270&photo_overlay=streetside

1 Like

Nice. What I don’t get is why your URL seemingly redirects to https://www.openstreetmap.org/edit?editor=id#map=19/40.715264/-73.937270. I would expect &photo_overlay=streetside to be preserved in the URL, but it isn’t, so I’m missing some part of the picture.

On OSM.org, the editor is loaded in an iframe. If you look at the iframe url, you will see all the parameters.

Thank you. Could you send a screenshot or more details on how to do that @Allison_P ?

The corresponding parameters (the part starting with #, called fragment identifier) are not sent to the server. The fragment identifier is read out via JavaScript (location.hash).