Leaflet.AutoLayers icon indicating copy to clipboard operation
Leaflet.AutoLayers copied to clipboard

mapServers is not returning layers to control

Open lrpatterson opened this issue 5 years ago • 3 comments

Currently I am just trying to pull back the layers from the service in the snippet below. Nothing is being return when I view the control in the DOM (also below). My leaflet version is 1.6.0. Can someone provide me some guidance on this issue?

`var config = { selectedOverlays: [], mapServers: { "url": "http://services.arcgisonline.com/arcgis/rest/services", "dictionary": "http://services.arcgisonline.com/arcgis/rest/services?f=pjson", "tileUrl": "/MapServer/tile/{z}/{y}/{x}", "name": "ArcGIS Online", "type": "esri" },

};

L.control.autolayers(config).addTo(map)`

image

lrpatterson avatar Nov 27 '19 21:11 lrpatterson

Are you getting any console error messages?

I may need an update to bring it up to 1.7 or later compatibility.

aebadirad avatar Nov 27 '19 21:11 aebadirad

I am not getting a console error at all.

lrpatterson avatar Dec 02 '19 15:12 lrpatterson

Maybe not related but I see console errors in the demo here:

https://aebadirad.github.io/Leaflet.AutoLayers/example/index.html

Screenshot_2022_02_14_214723

valerio-bozzolan avatar Feb 14 '22 20:02 valerio-bozzolan