Hi,

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

aldm
31223
accept rate: 0%

edited 16 Apr '11, 09:28

petschge's gravatar image

petschge
8.0k207196


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

petschge
8.0k207196
accept rate: 21%

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 ♦
18.2k15148263
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

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:

×30
×21

question asked: 15 Apr '11, 23:13

question was seen: 23,537 times

last updated: 04 Jul '13, 15:52

powered by OSQA