POST
|
I've just installed 10.1.1, and notice that AGSTile, AGSTileOperation classes are gone. I rely heavily on offline basemaps in exploded .jpg form. The reason I'm not keen on switching to .tpk: We have 6+ GB of base map data to load up on a dozen iPads. It will take 8-10 hours per if we're lucky. Any tiny change to the baseman requires a complete replacement of the .tpk, whereas now I can replace the file that changed.
... View more
05-29-2013
06:35 AM
|
0
|
2
|
1865
|
POST
|
I've never used .tpk. Is there a configuration file? Is it possible to override the minimum scale, so the images get pixelly but still zoom in? We use the exploded tile layer (.jpg). It contains the zoom levels in folders, which I rename to .bundle and move to the Documents folder. Some modifications to the OfflineTileLayer class were required. I added a feature to grab missing tiles from our server if on WiFi. There is a configuration file for that format, specifying the scales for each level. If I do not provide a .bundle for that level, and on 3G, the existing images just get stretched until the next level is reached.
... View more
05-29-2013
05:38 AM
|
0
|
0
|
404
|
POST
|
Check out this tutorial: http://blogs.esri.com/esri/arcgis/2012/11/09/how-to-build-an-apple-map-app-for-ios-using-the-arcgis-runtime-sdk-for-ios/
... View more
02-08-2013
03:18 AM
|
0
|
0
|
375
|
POST
|
Have you tried this? - (void)mapView:(AGSMapView *)mapView failedLoadingLayerForLayerView:(UIView<AGSLayerView> *)layerView baseLayer:(BOOL)baseLayer withError:(NSError *)error { NSLog(@"Error loading layer"); }
... View more
11-27-2012
04:23 AM
|
0
|
0
|
204
|
POST
|
What I've done is catch the zoom event [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(respondToZoom:) name:@"MapDidEndZooming" object:nil]; and reset the scale if it's too low - (void)respondToZoom:(NSNotification*)notification { self.scale = self.mapView.mapScale; if (self.scale < 500) { // zoom out AGSEnvelope *e = self.mapView.visibleArea.envelope; AGSPoint *pt = e.center; [self.mapView zoomToScale:500 withCenterPoint:pt animated:YES]; } }
... View more
11-23-2012
05:47 AM
|
0
|
0
|
272
|
POST
|
Could it be the simulator is using a default GPS location outside your map? I've added the following code to the end of my ViewController: #if TARGET_IPHONE_SIMULATOR @interface CLLocationManager (Simulator) @end @implementation CLLocationManager (Simulator) -(void)startUpdatingLocation { // City Hall: CLLocation *fakeLocation = [[CLLocation alloc] initWithLatitude:46.089796 longitude:-64.775348]; // replace with your lat/long [self.delegate locationManager:self didUpdateToLocation:fakeLocation fromLocation:fakeLocation]; } @end #endif // TARGET_IPHONE_SIMULATOR
... View more
11-06-2012
08:38 AM
|
0
|
0
|
192
|
POST
|
self.queryTask = nil; // i've already setup the other query properties like returnGeometry self.query.text = @""; self.query.where = @"STREET = 'MAIN' AND SUFFIX = 'ST'"; // example of where clause self.queryTask = [AGSQueryTask queryTaskWithURL:[NSURL URLWithString:kCivicURL]]; self.queryTask.delegate = self; //execute find task self.operation = [self.queryTask executeWithQuery:self.query];
... View more
08-27-2012
04:02 AM
|
0
|
0
|
456
|
POST
|
How do I get the URL of an AGSLayer (FeatureLayer, DynamicLayer) object? I can't find the property or method. ie. add a bunch of layers via an Add Layer panel. Later, a method wants to list the names and urls of the MapLayers.
... View more
08-16-2012
08:05 AM
|
0
|
1
|
753
|
POST
|
If no other option exists, you can always use a timer. [self performSelector:@selector(doGraphicsStuff) withObject:nil afterDelay:5]; // run method after second delay
... View more
08-03-2012
06:07 AM
|
0
|
0
|
220
|
POST
|
I would also suggest the Stanford University iPhone programming course on iTunes U. It's free and you can go at your own pace.
... View more
07-23-2012
07:03 AM
|
0
|
0
|
217
|
POST
|
Thank you Nimesh. I have just downloaded it. BTW, http://resources.arcgis.com/content/arcgis-iphone/api still shows 2.2.1.
... View more
06-25-2012
09:42 AM
|
0
|
0
|
183
|
POST
|
The Temporal app sample says it was updated June 22nd for v2.3. The SDK page only shows 2.2.1.
... View more
06-25-2012
04:28 AM
|
0
|
2
|
506
|
POST
|
We use meters as our unit of measure. I used a ruler tool in my app to measure the map width. 480 The envelope width returned 480, so I didn't need any further calculations.
... View more
06-22-2012
03:54 AM
|
0
|
0
|
622
|
POST
|
To change the headers setting, In Build Settings, User Header Search Paths: ${HOME}/Library/SDKs/ArcGIS/ArcGIS.Framework/Versions/Current/Headers I'm not sure why your bundle isn't expanding. You could try copying the bundle to your project folder, and including it to test.
... View more
06-21-2012
06:04 AM
|
0
|
0
|
413
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|