I've testing adding secured services from ArcGIS Server to a Leaflet application. I'm using the guidance found on the ESRI Leaflet Examples. I am using data from my own server. I am getting the following error:
"Uncaught TypeError: Cannot read property of 'length' on undefined. Util.js:380."
Anyone have any ideas what's going on? I don't have any projects that require this, I'm just seeing if I can figure it out.
Thanks,
Patrick
Solved! Go to Solution.
Hi Patrick,
since you didn't provide any code, its tough to say. my best guess is that you aren't passing in the url of the service itself in the layer constructor appropriately. this is easy to do, since we made a breaking change at version 1.0 of our plugins.
more info here:
Esri Leaflet 1.0.0 Announcement · Esri/esri-leaflet Wiki · GitHub
Hi Patrick,
since you didn't provide any code, its tough to say. my best guess is that you aren't passing in the url of the service itself in the layer constructor appropriately. this is easy to do, since we made a breaking change at version 1.0 of our plugins.
more info here:
Esri Leaflet 1.0.0 Announcement · Esri/esri-leaflet Wiki · GitHub
I feel like an idiot. I forgot to add the "/0" to the url in the constructor.