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 Kallurwar NicolasDumoulin |
The question has been closed for the following reason "Duplicate Question" by NicolasDumoulin 24 Aug '12, 08:55
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 |
Could you join your question with this one : http://help.openstreetmap.org/questions/15322/using-local-tiles
Seems a student class having to do the same homework ;)
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