AnsweredAssumed Answered

Identify Features at([]) error?

Question asked by BBurnworth on Oct 14, 2014
Latest reply on Oct 16, 2014 by PArlt-esristaff

I am going to say this is an error, but I am no expert. Perhaps it is user-error. Same code (from API example) only difference is the lat long. The first code does not work. The second code does. Is this an error or is this a problem on my end?

 

 

L.esri.Tasks.identifyFeatures('http://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer')

            .on(map)

            .at([45.543, -122.621])

            .layers('visible:1')

            .run(function(error, featureCollection, response){

                console.log("UTC Offset: " + featureCollection.features[0].properties.ZONE);

            });

 

L.esri.Tasks.identifyFeatures('http://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer')

            .on(map)

            .at(L.latLng(45.543, -122.621))

            .layers('visible:1')

            .run(function(error, featureCollection, response){

                console.log("UTC Offset: " + featureCollection.features[0].properties.ZONE);

            });

Outcomes