Adding Secured Service Error

2745
2
Jump to solution
06-01-2016 10:01 AM
Labels (1)
PatrickMcKinney1
Occasional Contributor III

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

0 Kudos
1 Solution

Accepted Solutions
JohnGravois
Frequent Contributor

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

View solution in original post

2 Replies
JohnGravois
Frequent Contributor

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

PatrickMcKinney1
Occasional Contributor III

I feel like an idiot. I forgot to add the "/0" to the url in the constructor. 

0 Kudos