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


how can this map be used with php, to dinamically get data from mysql database and show map depend on data from database?

asked 15 Apr '11, 23:13

aldm's gravatar image

accept rate: 0%

edited 16 Apr '11, 09:28

petschge's gravatar image


In several of my websites I implemented some level of integration of OpenStreetMap by dynamically generating javascript in PHP upon page requests (mostly setting call parameters of JS functions dependent on some calculation in PHP) and by dynamically generating kml file from PHP that are then used by OpenLayer vector layers. For an example see http://pgc.petschge.de/index.php and linked files. Source is available by appending .txt to the filename.

permanent link

answered 16 Apr '11, 09:31

petschge's gravatar image

accept rate: 21%

@petschge can you give me the source of this link please

(22 Jan '20, 15:58) N0uman

i need a source file

(22 Jan '20, 16:06) N0uman

I'm not an expert, but is the example detailed in the wiki here similar to what you had in mind?

permanent link

answered 15 Apr '11, 23:18

EdLoach's gravatar image

EdLoach ♦
accept rate: 23%

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: 15 Apr '11, 23:13

question was seen: 40,262 times

last updated: 22 Jan '20, 16:06

powered by OSQA