Select to view content in your preferred language

How to use GeometryService labelPoints ?

723
1
Jump to solution
11-25-2012 02:53 AM
FaisalSabri
Emerging Contributor
Hi ,

i'm trying to use the following code :

self.GeometryService = [[[AGSGeometryServiceTask alloc] initWithURL:[NSURL URLWithString:GeometryServiceURL]] autorelease];

self.GeometryService.delegate = self;

[self.GeometryService labelPointsForPolygons:directions.graphics];

but it's not working with me

Thanks & Regards
Faisal
0 Kudos
1 Solution

Accepted Solutions
NimeshJarecha
Esri Regular Contributor
It is not working because you are passing an array of graphics in the method instead of an array of polygon geometries. I would recommend using AGSGeometryEngine's labelPointForPolygon: method to avoid a network call and speedy response.

Regards,
Nimesh

View solution in original post

0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor
It is not working because you are passing an array of graphics in the method instead of an array of polygon geometries. I would recommend using AGSGeometryEngine's labelPointForPolygon: method to avoid a network call and speedy response.

Regards,
Nimesh
0 Kudos