Why not ask your question on the new OpenStreetMap Community Forum?

Hi all,

I'm very overwhelmed with information and am very confused with the process of displaying maps (the way I want) on my website.

I understand that I can grab the iframe and paste it on my website, which is great. However, I am importing geolocation data from an XML file so I have lots of different locations. I tried editing the iframe with the lat/long information I have from the XML file but it breaks the map. I'm assuming the process is a little more advanced than I thought?

Is there an easy way for me to just add custom lat/long data?

I'm very sorry if I'm misunderstanding something here.


asked 09 Feb '22, 12:51

CRugman's gravatar image

accept rate: 0%


Unfortunately the iframe code from opentreetmap.org is only meant to display a simple map, optionally with a single marker.

You'll need to write your own code, using the Leaflet js framework for example.

Or you could import your data in uMap (or other similar service), and display this map in an iframe.


permanent link

answered 09 Feb '22, 18:34

H_mlet's gravatar image

accept rate: 13%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 09 Feb '22, 12:51

question was seen: 761 times

last updated: 09 Feb '22, 18:34

powered by OSQA