neel05

Error in executing labelPoints method of geometry service

Discussion created by neel05 on Jul 15, 2010
Latest reply on Jul 16, 2010 by DSwingley-esristaff
I am trying to use the labelPoints method using ESRI's geometry service.

[HTML] var geometryService = new esri.tasks.GeometryService("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"); 
     var poly = new esri.geometry.Polygon(new esri.SpatialReference({ wkid: 4269 }));
     poly.addRing(parish.geometry.rings);    
     try {
         geometryService.labelPoints(poly, OnLabelPointsComplete, onError);
     } catch (Error) {
     alert(Error);
     }[/HTML]

But something is wrong. I am getting 'TypeError: _b44[0] is undefined' error in try..catch block.
Any ideas?

Thanks.

Outcomes