|
POST
|
You're welcome! If a post provides the answer to your question, then we encourage you to mark the post as "the answer" by activating the green check mark right of the post. You can also "vote" on posts that you find helpful by clicking the blue caret mark. More information about the ArcGIS Discussion Forums MVP Program found here. Thank you, Nimesh
... View more
04-18-2012
09:42 AM
|
0
|
0
|
4718
|
|
POST
|
My last response helped you any way? If not, attach your sample project. Regards, Nimesh
... View more
04-17-2012
12:52 PM
|
0
|
0
|
2211
|
|
POST
|
Did you do following? And it still crashing? self.locationInfoTemplate * template = [[LocationInfoTemplate alloc] init];
//AGSCalloutTemplate* template = [[AGSCalloutTemplate alloc] init] ;
self.template.titleTemplate = @"${Username}";
self.template.detailTemplate = @"${TimeStamp}";
AGSGraphic *location = [[AGSGraphic alloc] initWithGeometry: mapPoint
symbol: pointMarker
attributes: [colleague mutableCopy]
infoTemplateDelegate:self.template]; //template]; Also, you're using geometry engine in following code line. I hope you are initializing it. Like, AGSGeometryEngine *_geometryEngine = [AGSGeometryEngine defaultGeometryEngine]; AGSGeometry *mapPoint = [_geometryEngine projectGeometry:wgspoint toSpatialReference:self.mapView.spatialReference]; If you are doing all above then please attach your sample project so I can have a look at it. Regards, Nimesh
... View more
04-17-2012
12:33 PM
|
0
|
0
|
2211
|
|
POST
|
You should create a retain property for AGSCalloutTemplate *template. Regards, Nimesh
... View more
04-17-2012
08:36 AM
|
0
|
0
|
2211
|
|
POST
|
Yes, it is that simple. Please refer ArcGIS Feature Layer documentation. Regards, Nimesh
... View more
04-16-2012
09:09 AM
|
0
|
0
|
992
|
|
POST
|
Just change your didExecuteWithIdentifyResults code as following and it won't crash... - (void)identifyTask:(AGSIdentifyTask *)identifyTask operation:(NSOperation *)op didExecuteWithIdentifyResults:(NSArray *)results { //clear previous results [self.graphicsLayer removeAllGraphics]; if ([results count] > 0) { //add new results AGSSymbol* symbol = [AGSSimpleFillSymbol simpleFillSymbol]; symbol.color = [UIColor colorWithRed:0 green:0 blue:1 alpha:0.5]; // for each result, set the symbol and add it to the graphics layer for (AGSIdentifyResult* result in results) { result.feature.symbol = symbol; [self.graphicsLayer addGraphic:result.feature]; } //set the callout content for the first result //get the state name NSString *stateName = [((AGSIdentifyResult*)[results objectAtIndex:0]).feature.attributes objectForKey:@"STATE_NAME"]; self.mapView.callout.title = stateName; self.mapView.callout.detail = @"Click for more detail.."; //show callout [self.mapView showCalloutAtPoint:self.mappoint forGraphic:((AGSIdentifyResult*)[results objectAtIndex:0]).feature animated:YES]; } else { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Identify Result" message:@"No Result Found!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release]; } //call dataChanged on the graphics layer to redraw the graphics [self.graphicsLayer dataChanged]; } Regards, Nimesh
... View more
04-16-2012
09:03 AM
|
0
|
0
|
4718
|
|
POST
|
Yes, it is possible to create these commands. Here are the steps you should follow... 1. Create a retain property of NSMutableArray. 2. Listen to the "MapDidEndZooming" notification. 3. Add self.mapView.visibleArea.envelope to the array created in step 1. 4. From "Go Back" and "Go Forward" get the respective extent and zoom. Regards, Nimesh
... View more
04-16-2012
08:47 AM
|
0
|
0
|
908
|
|
POST
|
Yes, it is possible to create these commands. Here are the steps you should follow... 1. Create a retain property of NSMutableArray. 2. Listen to the "MapDidEndZooming" notification. 3. Add self.mapView.visibleArea.envelope to the array created in step 1. 4. From "Go Back" and "Go Forward" get the respective extent and zoom. Regards, Nimesh
... View more
04-16-2012
08:47 AM
|
0
|
0
|
560
|
|
POST
|
Great! Finally you got it working! 🙂 Regards, Nimesh
... View more
04-13-2012
12:51 PM
|
0
|
0
|
3801
|
|
POST
|
Here is how I would test this... 1. Create a tiled map service which supports LODs below Bing Map. Bing Map's lowest scale of 1128 so create a tiled cache with 1000,500 and 250 scales. Make sure that the this tiled layer is in Web Mercator spatial reference. 2. Add Bing Map to the map first. 3. Add AGSTiledMapServiceLayer (not custom tiled layer for testing purpose) created in step 1 on top of Bing Map. 4. Now on map keep zooming in and it should allow zooming beyond 1128 scale. I tested this and it just works. Regards, Nimesh
... View more
04-13-2012
10:12 AM
|
0
|
0
|
3802
|
|
POST
|
Did you create AGSLocalTiledLayer with that tile package? Is it working fine? Regards, Nimesh
... View more
04-13-2012
08:27 AM
|
0
|
0
|
1723
|
|
POST
|
You can use Sketch Graphics Layer to create new geometries. Regards, Nimesh
... View more
04-12-2012
08:59 AM
|
0
|
0
|
714
|
|
POST
|
You can get the map width in map's spatial reference from mapView's extent. AGSEnvelope *mapEnvelope = self.mapView.visibleArea.envelope; double width = mapEnvelope.xmax - mapEnvelope.xmin; Based on device (retina or non-retina) you can get the point/pixel value. Regards, Nimesh
... View more
04-11-2012
02:45 PM
|
0
|
0
|
1317
|
|
POST
|
Could you please elaborate your question? 1. Do you have base layer which is not in WGS84? But you want to use AGSGPS? 2. Do you expect AGSGPS points in WGS84 or base layer's spatial reference? Regards, Nimesh
... View more
04-11-2012
11:25 AM
|
0
|
0
|
1035
|
| 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 |
03-30-2026
10:15 AM
|