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

Hello experts, sorry my English. I need your help, i have web hosting from justhost.com and now I want to display an OSM map on my web site.

How about MySQL, PHP 5. Do I need these?

asked 19 Nov '12, 07:11

Altai's gravatar image

Altai
7334
accept rate: 0%

edited 19 Nov '12, 09:26

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273


Displaying a web site that contains an OSM map does not require MySQL or PHP. You will only have to write a litte HTML and JavaScript.

See http://wiki.openstreetmap.org/wiki/Deploying_your_own_Slippy_Map for details, or look at http://switch2osm.org/using-tiles/ which has excellent examples for both the OpenLayers and the Leaflet library!

You can have it even easier if you go to www.openstreetmap.org, zoom to your area of interest, click the "export" tab, select "embeddable HTML", and copy+paste the resulting HTML code.

permanent link

answered 19 Nov '12, 09:25

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

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:

×710
×111

question asked: 19 Nov '12, 07:11

question was seen: 2,873 times

last updated: 19 Nov '12, 09:26

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