AnsweredAssumed Answered

Leaflet basemap issue

Question asked by ascullyCOT on Jan 3, 2018
Latest reply on Jan 5, 2018 by JGravois-esristaff

I'm helping a colleague with a small leaflet application.  We are running into trouble when trying to add our own basemap service using the 'L.tiledMapLayer' method.  I suspect the issue is with our map service, but we use this service successfully in several custom javascript applications, as well as other ESRI and GeoCortex applications.  

When using an ESRI basemap URL, it seems to work fine:

 

L.esri.tiledMapLayer({
 url: "http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer"
}).addTo(map);

 

However swapping out the ESRI URL for our own (non-secured and publicly accessible) tiled service, the basemap does not render, and the dev tools show a bunch of 404 Not found errors for the tiles.

 

L.esri.tiledMapLayer({
url: "https://maps2.tucsonaz.gov/arcgis/rest/services/BaseMaps/gisBaseMap_Topo/MapServer"
}).addTo(map);

 

Wondering if this is setting within our service, so that as currently configured it won't work with Leaflet?

 

Thanks - 

Allen

Outcomes