Hello All, I am working in a Windows environment. In an .aspx web form

L.tileLayer('http://tile.osm.org/{z}/{x}/{y}.png', { }).addTo(map);

will show the correct OSM tile.

I also have some custom tiles on MyOwnCustomServer.

If I type http://MyOwnCustomServer/7/19/43.png into my web browser, it will show the correct tile.

However,

L.tileLayer('http://MyOwnCustomServer/7/19/43.png', { }).addTo(map);

AND

L.tileLayer('http://MyOwnCustomServer/{z}/{x}/{y}.png', { }).addTo(map);

do not show any OSM tiles.

Does anyone know what I need to do to get this to work? Thanks in advance.

asked 22 Oct, 21:52

SeattleHeather's gravatar image

SeattleHeather
2204715
accept rate: 0%

edited 22 Oct, 22:06


I figured out the answer. My browser wasn't clearing the cache. :)

permanent link

answered 22 Oct, 23:37

SeattleHeather's gravatar image

SeattleHeather
2204715
accept rate: 0%

Your answer
toggle preview

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:

×551
×100
×57
×47
×36

question asked: 22 Oct, 21:52

question was seen: 167 times

last updated: 22 Oct, 23:37

powered by OSQA