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

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.3k217398


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.3k217398
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 ♦
19.5k16156280
accept rate: 22%

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:

×34
×21

question asked: 15 Apr '11, 23:13

question was seen: 42,281 times

last updated: 22 Jan '20, 16:06

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