NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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

KeyDog
1112
accept rate: 0%

edited 05 Jan '12, 09:39

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108


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...
8.3k1785108
accept rate: 18%

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

http://wiki.openstreetmap.org/wiki/Deploying_your_own_Slippy_Map

permanent link

answered 12 Jan '12, 02:59

Andy%20F's gravatar image

Andy F
46115
accept rate: 0%

Follow this question

By Email:

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

By RSS:

Answers

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:

×315
×35
×33

question asked: 05 Jan '12, 08:22

question was seen: 7,605 times

last updated: 12 Jan '12, 02:59

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum