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 : http://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


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)...

permanent link

answered 23 Aug '12, 11:52

Pieren's gravatar image

Pieren
9.7k2075157
accept rate: 15%

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:

×8

question asked: 21 Aug '12, 12:09

question was seen: 2,653 times

last updated: 24 Aug '12, 08:55

powered by OSQA