|
POST
|
Okay, what is the spatial reference of the map (self.mapView.spatialReference)? What is the spatial reference of the geometries returned by query task? If they are different then you should set out spatial reference to self.mapView.spatialReference of the query so server return geometries in map's spatial reference. query.outSpatialReference = self.mapView.spatialReference; Regards, Nimesh
... View more
10-12-2012
02:30 PM
|
0
|
0
|
1430
|
|
POST
|
I said, "If returned graphics has polygon geometry then do this." but since geometry is polyline you should create simple line symbol. Just use below code and it will handle all type of geometry. - (void)queryTask:(AGSQueryTask *)queryTask operation:(NSOperation *)op didExecuteWithFeatureSetResult:(AGSFeatureSet *)featureSet {
[self.graphicsLayer removeAllGraphics];
AGSSimpleFillSymbol *simpleFillSymbol = [AGSSimpleFillSymbol simpleFillSymbol];
for (AGSGraphic *graphic in featureSet.features) {
if ([graphic.geometry isKindOfClass:[AGSPoint class]] || [graphic.geometry isKindOfClass:[AGSMultipoint class]]) {
graphic.symbol = [AGSSimpleMarkerSymbol simpleMarkerSymbol];
}
else if ([graphic.geometry isKindOfClass:[AGSPolyline class]]) {
graphic.symbol = [AGSSimpleLineSymbol simpleLineSymbol];
}
else if ([graphic.geometry isKindOfClass:[AGSPolygon class]]) {
graphic.symbol = [AGSSimpleFillSymbol simpleFillSymbol];
}
graphic.visible = YES;
[self.graphicsLayer addGraphic:graphic];
}
[self.graphicsLayer dataChanged];
} Also, go through working with symbols and renderer documentation. That'll help you understand everything. Regards, Nimesh
... View more
10-12-2012
12:49 PM
|
0
|
0
|
1430
|
|
POST
|
What type of renderer is set for the graphics layer? The returned graphics from query task ash which type of geometry? If render set on the graphics layer does not support geometry returned by query task then you should set symbol on each graphic before adding them to the graphics layer and it should draw it. If returned graphics has polygon geometry then do this. - (void)queryTask:(AGSQueryTask *)queryTask operation:(NSOperation *)op didExecuteWithFeatureSetResult:(AGSFeatureSet *)featureSet {
[self.graphicsLayer removeAllGraphics];
AGSSimpleFillSymbol *simpleFillSymbol = [AGSSimpleFillSymbol simpleFillSymbol];
for (AGSGraphic *graphic in featureSet.features) {
graphic.visible = YES;
graphic.symbol = simpleFillSymbol;
[self.graphicsLayer addGraphic:graphic];
}
[self.graphicsLayer dataChanged];
} Hope this helps! Regards, Nimesh
... View more
10-12-2012
10:16 AM
|
0
|
0
|
1430
|
|
POST
|
Kazan, This forum belongs to ArcGIS Runtime SDK for iOS. I would suggest posting question at ArcGIS API for Silverlight forum so you get response from that API users. Regards, Nimesh
... View more
10-12-2012
08:48 AM
|
0
|
0
|
1349
|
|
POST
|
No problem. Let me know when you have more info. Regards, Nimesh
... View more
10-11-2012
08:48 AM
|
0
|
0
|
1248
|
|
POST
|
Use AGSGeometryEngine's projectGeometry method and project your point to [AGSSpatialReference wgs84SpatialReference]. Regards, Nimesh
... View more
10-11-2012
08:47 AM
|
0
|
0
|
786
|
|
POST
|
Yes, your guess is correct. Server returns HTML which JSON parser fails to parse and you have that error. Intercepting the request and response will help you. Let me know if you need further help with this whenever you get a chance to look at it. Regards, Nimesh
... View more
10-10-2012
08:54 AM
|
0
|
0
|
1350
|
|
POST
|
1. You are creating point with spatial reference 43276. Is that correct? Or you meant 4326? [AGSPoint pointWithX:32.0636 y:34.7922 spatialReference:[AGSSpatialReference spatialReferenceWithWKID:43276]]; 2. Is you point's spatial reference is same as map's spatial reference (self.mapView.spatialReference)? 3. You should add graphic to graphics layer, not graphic to graphic. //[myGraphic addGraphic:myGraphic]; [self.myGraphicsLayer addGraphic:myGraphic]; Hope this helps! Regards, Nimesh
... View more
10-10-2012
08:52 AM
|
0
|
0
|
570
|
|
POST
|
If you want to use v2.3.2 then remove armv6 from valid architectures list. Regards, Nimesh
... View more
10-09-2012
08:02 AM
|
0
|
0
|
374
|
|
POST
|
Yes, moving to ARC might help. But if you keep your minimum target to 4.x then you'll still have to handle zeroing weak reference. Here is the apple doc. Also, moving to ARC will be more performant. You are putting all local variables also into autorelease pool which is less performant. //putting this into autorelease is less performant. it should be explicitly released. AGSBingMapLayer* layer = [[[AGSBingMapLayer alloc] initWithAppID:kBingMapsAppID style:AGSBingMapLayerStyleAerialWithLabels] autorelease]; Regards, Nimesh
... View more
10-05-2012
01:01 PM
|
0
|
0
|
1829
|
|
POST
|
Good to know. I just posted question without looking at your edits. Regards, Nimesh
... View more
10-05-2012
10:01 AM
|
0
|
0
|
873
|
|
POST
|
I don't think there is anything in the project setting which cause the issue. However, you are seeing crash on iPad but your project is set only for iPhone. You'll probably have to do very little to make it a Universal app. Regards, Nimesh
... View more
10-05-2012
09:58 AM
|
0
|
0
|
1319
|
|
POST
|
What did you change in the FindTaskDemo? Regards, Nimesh
... View more
10-05-2012
09:33 AM
|
0
|
0
|
873
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-18-2024 12:33 PM | |
| 1 | 03-12-2024 08:54 AM | |
| 1 | 09-28-2023 08:19 AM | |
| 2 | 07-28-2023 08:07 AM | |
| 1 | 06-27-2013 10:42 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-26-2025
07:28 AM
|