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

[closed] How Load my local OSM tiles on JSP Map

-2

I have written the html code to load local tiles on OSM Map, it works fine in html page but when I put the same code in jsp page the url to load local tiles shows as IndiaMap///.png instead of IndiaMap/0/0/0.png I have written the code as: var newLayer = new OpenLayers.Layer.OSM("LocalTiles", "IndiaMap/${z}/${x}/${y}.png", {numZoomLevels: 4, alpha: true, isBaseLayer: true});

asked 21 Aug '12, 12:09

Niki%20Kallurwar's gravatar image

Niki Kallurwar
11445
accept rate: 0%

closed 24 Aug '12, 08:55

NicolasDumoulin's gravatar image

NicolasDumoulin
3.3k42256

2

Could you join your question with this one : https://help.openstreetmap.org/questions/15322/using-local-tiles

Seems a student class having to do the same homework ;)

(21 Aug '12, 12:12) Pieren

I have written the html code to load local tiles on OSM Map, it works fine in html page but when I put the same code in jsp page the url to load local tiles shows as IndiaMap///.png instead of IndiaMap/0/0/0.png I have written the code as: var newLayer = new OpenLayers.Layer.OSM("LocalTiles", "IndiaMap/${z}/${x}/${y}.png", {numZoomLevels: 4, alpha: true, isBaseLayer: true});

please suggest any solution for this issue

(22 Aug '12, 05:24) Niki Kallurwar

The question has been closed for the following reason “Duplicate Question” by NicolasDumoulin 24 Aug ‘12, 08:55


One Answer:

1

Check the same question asked by Reshma Maner at the same time as yourself and follow the thread on the dev@openstreetmap.org mailing list:

http://lists.openstreetmap.org/pipermail/dev/2012-August/025477.html

Guys, next time, when you work on the same student project, try to communicate with each other before asking three times the same question to the community (on this help site and mailing lists)...

answered 23 Aug '12, 11:52

Pieren's gravatar image

Pieren
9.8k2083157
accept rate: 15%

Source code available on GitHub .