This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to add Shape files on OSM Map

-1

I want to add Shape files on OSM Map. I have searched for it, but cannot find any solution. Please suggest any solution for this

asked 25 Aug '12, 14:01

Niki%20Kallurwar's gravatar image

Niki Kallurwar
11445
accept rate: 0%

Do you want to display them on top of a map or use them to add new data?

(25 Aug '12, 14:50) scai ♦
2

A bit more information about what you're trying to do here would help. Are you talking about a web map, or on a phone, or something else? What sort of rendering are you talking about - tiles, or a vector map? What sort of information do you want to show?

(25 Aug '12, 14:52) SomeoneElse ♦

I want to add shape file of India roadways on OSM web map and I want to add it as a layer map.

(26 Aug '12, 10:48) Niki Kallurwar

So you probably want to display a shapefile using OpenLayers. What about cartinus' answer?

(26 Aug '12, 11:47) scai ♦

One Answer:

2

An OSM-map on the web is typically displayed using OpenLayers or Leaflet.

A quick Google search on "openlayers shapefile example" gives this blog as a first hit.

answered 25 Aug '12, 14:33

cartinus's gravatar image

cartinus
7.0k1066105
accept rate: 27%

edited 25 Aug '12, 19:34

Source code available on GitHub .