You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the API reference could be a lot clearer on this, but the getLayers() method doesn't fire off a request for service metadata describing which layers are visible by default, it simply passes back information present in the layer constructor options.
my reply in issue #566 is relevant here too because i describe the same technique you'd use to fetch the layers and their default visibility.
Chrome 50.0.2661.102 m
L.version
):1.0.0-rc.1
L.esri.VERSION
):2.0.0
ie: [CDN](https://cdn.jsdelivr.net/leaflet.esri/2.0.0/esri-leaflet.js
Steps to reproduce the error:
2.Wait for the layer to load
What happens is getLayers() returns false.
I was expecting an array of layers on the MapService that are being shown
http://jsbin.com/datogesuja/8/edit?html,output
The text was updated successfully, but these errors were encountered: