How to add Open Street Map to any page or post
OpenStreetMap provides map data for thousands of websites, mobile apps, and hardware devices. OpenStreetMap is built by a community of mappers that contribute and maintain data about roads, trails, cafés, railway stations, and much more, all over the world.
Get the OpenStreetMap embed code
Go to OpenStreetMap and find the address you would like to share.
On the right-hand side, locate the 'Share' icon and button, and click this to display a slide-out panel.
From the tab options, click on 'HTML', then click to copy the code provided.
Display OpenStreetMap with the Embed Code component
Log in to the uSkinned Site Builder CMS.
On any page or blog post, locate the label 'Main content' and click 'Add content'.
In the slide-out panel, select 'Embed Code'.
In the field provided, paste the HTML you copied from OpenStreetMap.
<iframe width="450" height="350" src="https://www.openstreetmap.org/export/embed.html?bbox=-0.4622239479795099%2C39.41359954473846%2C-0.2905625710263849%2C39.525575588307476&layer=mapnik&marker=39.469610091927976%2C-0.37639325950294733" style="border: 1px solid black"></iframe><br/><small><a href="https://www.openstreetmap.org/?mlat=39.4696&mlon=-0.3764#map=13/39.4696/-0.3764">View Larger Map</a></small>
We would recommend at this point updating the width to 100%. This will ensure your map is fully responsive.
Now click submit to close the slide-out panel.
In the bottom right of the screen, click "Save and publish".
Now go to the page in the front end of your website to see the results.
More ways to display OpenStreetMap
There are a variety of places you can embed OpenStreetMap on your uSkinned Site Builder website.
You can try this out using the same steps for:
— Pods component > Embed Code
— Split component > Embed Code block
— Global components > Embed Code
— Global pods > Embed Code
— Extra Content > Top Components > Embed Code
— Extra Content > Bottom Components > Embed Code
— Extra Content > Pods > Embed Code
— Footer pods > Embed Code