This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Leaflet custom tile server not showing osm .pngs

0

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


One Answer:

1

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

answered 22 Oct '19, 23:37

SeattleHeather's gravatar image

SeattleHeather
2206915
accept rate: 0%

Source code available on GitHub .