OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2010-03-17 16:39:37

griso007
Member
Registered: 2010-03-17
Posts: 1

OSM in a Webpage like Maps.

Hi.
I need to use a dinamic map in a web page. With maps by google it is possible using some script files.
I want use OSM, but I don't know if it is possible or no.
Can you help me please?

Tks.

Offline

#2 2010-03-17 18:15:32

Vclaw
Member
From: Alba
Registered: 2009-02-25
Posts: 522
Website

Re: OSM in a Webpage like Maps.

Go to http://www.openstreetmap.org and find the place you want a map of. Then click the "Export" tab at the top of the page, and choose "Embeddable HTML". That will give you code that you can add to your webpage, for a map in an iframe.

Or if you want to more fancy stuff with a slippy map, ie add more markers or tracks etc, then you can use OpenLayers. There's some simple examples here, you can copy and paste the code to your webpage: http://wiki.openstreetmap.org/wiki/OpenLayers

Last edited by Vclaw (2010-03-17 18:15:52)

Offline

#3 2010-03-17 18:22:56

1248
Member
Registered: 2009-09-21
Posts: 55

Re: OSM in a Webpage like Maps.

Have a look at this website:

http://osmtools.de/easymap/index.php?page=start&lang=en

It's a online generator for OSM slippy maps which you can then include in your own web pages. Complete with markers if you like. Just click on the "create map" tab, chose your map, fill in the form, and you're done...

HTH, Philipp

Offline

Board footer

Powered by FluxBB