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

I recently wrote an extension* for PunBB as I wanted an alternative option to Google Maps and very much liked the feel of OSM.

However when I create a post A with an embeded map section XYZ with fixed longitude X1 and latitude Y2 I encounter unexpected behaviour after visiting OTHERS, ADDITIONAL posts with other map sections with lon:X2 lat:Y3. The unexpected behaviour: The map shows whatever map section I was last browsing. Why?

Thanks for any ideas... * (http://punbb.informer.com/forums/topic/24786/extension-open-street-map/)

asked 05 Jan '12, 08:22

KeyDog's gravatar image

accept rate: 0%

edited 05 Jan '12, 09:39

Jonathan%20Bennett's gravatar image

Jonathan Ben...

Your extension doesn't embed a map - it embeds the whole of openstreetmap.org in an iframe. This isn't the correct way to include an OpenStreetMap-based map on a web page. Please use the Export feature or include your own slippy map using OpenLayers to display a map.

permanent link

answered 05 Jan '12, 09:36

Jonathan%20Bennett's gravatar image

Jonathan Ben...
accept rate: 18%

This is a good starting point for the question you are asking. Several examples already out there...


permanent link

answered 12 Jan '12, 02:59

Andy%20F's gravatar image

Andy F
accept rate: 0%

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: 05 Jan '12, 08:22

question was seen: 7,074 times

last updated: 12 Jan '12, 02:59

powered by OSQA