< UMap

UMap/Tips

Add a media (video/sound) in a popup

Use an iframe to add a media in your popup. See iframe syntax here: uMap/Guide/Text formatting

Examples:

This solution is great. JOSM will zoom on the osm object and load all objects displayed on current view. Add the following code in your popup:

**Edit:** [[http://127.0.0.1:8111/load_and_zoom?left={west}&right={east}&top={north}&bottom={south}&select={id}|JOSM]]

This will only load the osm object in JOSM. Add the following code in your popup:

**Edit:** [[http://127.0.0.1:8111/load_object?new_layer=true&objects={id}|JOSM]]

This will load displayed area in JOSM. Add the following code in your popup:

**Edit:** [[http://127.0.0.1:8111/load_and_zoom?left={west}&right={east}&top={north}&bottom={south}|JOSM]]

This will load displayed area in iD. Add the following code in your popup:

**Edit:** [[https://www.openstreetmap.org/edit#map={zoom}/{lat}/{lon}|iD]]

Note that you can force the zoom like so (zoom=12 in following example):

**Edit:** [[https://www.openstreetmap.org/edit#map=22/{lat}/{lon}|iD]]

Not possible yet.

Use dynamic bbox with Remote Data

Note that the dynamic bounds need to have their curly braces *NOT* urlencoded.

This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.