AnsweredAssumed Answered

Geometry Service not returning polygons

Question asked by David.Kucharski@23 on Aug 27, 2018
Latest reply on Aug 27, 2018 by David.Kucharski@23

I have the below code in my application. It is running when I click on the view. I believe everything is correct, but there are not results. I do not get the alert or graphics. It also does not finish the function. It feels like an error is occurring but I am not seeing it.

 

var geometryService = new GeometryService({
url: "https://esridev.nsamedia.com/arcgis/rest/services/Utilities/Geometry/GeometryServer"
});

 

var radiusParams = new BufferParameters({
   distances: 15e,
   unit: "miles",
   geodesic: true,
   bufferSpatialReference: new SpatialReference({ wkid: 4326 }),
   outSpatialReference: view.spatialReference,
   geometries: event.mapPoint
});

 

geometryService.buffer(radiusParams).then(function (results) {
   alert("in");
   highlightGeographyLyr.add(new Graphic({
      geometry: results[0]
   }));
});

Outcomes