Problems using tiledMapLayer with MapServer
See original GitHub issue- Browser and version: Version 59.0.3071.115 (Official Build) (64-bit)
- Version of Leaflet (
L.version
): 1.1.0 - Version of esri Leaflet (
L.esri.VERSION
): 2.0.8 - I’m using the CDN (not webpack, browserigy,…)
What happens is: tile layer doesn’t load and I was expecting tiles to load ^_^.
Detailed explanation:
I was trying to reproduce this same example but with another MapServer, as you can check it in Plunker. But it doesn’t load the tiles:
I also tested the service with the ArcGIS Online Web Map Viewer and the services works properly: http://arcg.is/5mH00
It seems to be something related with the X & Y in the URL because some tiles load and some doesn’t.
I also tried using leaflet.TileLayer.WMTS but it didn’t work either
Any thoughts?
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Trouble loading tiledMapLayer - get 404 (Not Found...
Hi, We have a tiled layer stored on ArcGIS Server 10.4.1. We use tokens which are at present hard-coded into the JavaScript or...
Read more >Leaflet fails to overlay my ESRI hosted Tiled Service on the ...
I have tried both the Leaflet tileLayer and ESRI's Leaflet tiledMapLayer. var my_tiled_layer_1 = L.esri.tiledMapLayer({ url: "{MY_ARCGIS_URL}/ ...
Read more >LAYER — MapServer 8.0.0 documentation
This keyword allows name value pairs to be created to bind variables in SQL statements. Variable binding prevents SQL injection by properly ...
Read more >ESRI TileLayer with non-standard 0 zoom does not load in ...
i see several different problems going on here: you shouldn't append /tile/{z}/{y}/{x} to urls when instantiating a tiledMapLayer. we don't ...
Read more >Using Base Maps with Non-standard Coordinate Systems in ...
Map("map", { crs: crs }); // create new TiledMapLayer from esri-leaflet var url = "http://geoedit.utah.gov/ArcGIS/rest/services/BaseMaps/Vector/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
see https://github.com/Esri/esri-leaflet/issues/1342
there are a couple things going on with your tiled service
this API makes a best faith effort to correct non-standard lods that we recognize, but even after downgrading to http and forcing a JSONP metadata request, i wasn’t able to get the layer to display the way it should.
to resolve the problem you can instead define a custom crs for Leaflet manually.
live demo (based on logic you can find in our non-mercator projection sample)