Why not ask your question on the new OpenStreetMap Community Forum?

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.


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


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 '19, 21:52

SeattleHeather's gravatar image

accept rate: 0%

edited 22 Oct '19, 22:06

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

permanent link

answered 22 Oct '19, 23:37

SeattleHeather's gravatar image

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



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:


question asked: 22 Oct '19, 21:52

question was seen: 1,941 times

last updated: 22 Oct '19, 23:37

powered by OSQA