NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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.

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

SeattleHeather's gravatar image

SeattleHeather
2206915
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

SeattleHeather
2206915
accept rate: 0%

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:

×710
×123
×74
×57
×39

question asked: 22 Oct '19, 21:52

question was seen: 2,434 times

last updated: 22 Oct '19, 23:37

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum