POST
|
The map control's frame isn't going to change as you zoom. The envelope does though. Use the width of that. NSLog(@"%f", self.mapView.visibleArea.envelope.width);
... View more
06-21-2012
05:50 AM
|
0
|
0
|
622
|
POST
|
In the Finder, click Go. Click Library. If Library is hidden, hold the Option key. Navigate to SDKs->ArcGIS->ArcGIS.Framework->Versions->Current->Resources Add that ArcGIS.bundle to the project. You may need to change the Xcode settings to use the Current->headers folder there.
... View more
06-20-2012
03:54 AM
|
0
|
0
|
413
|
POST
|
From what I can tell, the AddedFeatures file is where the features added since you went offline would go. You could change the read/write routines for them, or change your file to match. When you go Online, it checks for any added features, and updates the layer.
... View more
06-19-2012
07:09 AM
|
0
|
0
|
261
|
POST
|
The property may be being released before it's used. Is it defined as strong? (retain in the old pre-ARC way)
... View more
06-14-2012
08:56 AM
|
0
|
0
|
122
|
POST
|
Have a look at the OnlineOffline Editing sample. It should give you an idea of what to do. It uses JSON for the layer definition and data files.
... View more
06-14-2012
08:52 AM
|
0
|
0
|
261
|
POST
|
Have a look at the Offline editing sample. It uses JSON to store the data while offline. I uploaded a sample in an earlier post you can check out.
... View more
06-05-2012
05:23 AM
|
0
|
0
|
176
|
POST
|
I had to add .txt to the filenames to upload them. They normally have no extension. Edit: Of course, you can modify the onlineoffline class to use whatever path and filename you want.
... View more
05-29-2012
05:55 AM
|
0
|
0
|
671
|
POST
|
Add an observer [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(respondToPan:)name:@"MapDidEndPanning" object:nil]; and check if the user has panned beyond an arbitrary extent. If so, move them back. - (void)respondToPan:(NSNotification*)notification { // get the current envelope if (extent is outside top/bottom/left/right bounds) { // bounce back // map envelope = corrected envelope }
... View more
05-29-2012
05:29 AM
|
0
|
0
|
365
|
POST
|
1. Use a cloud location (either iCloud or your server) to hold the locations. 2. Use a plist file to store the map paths. Issue a new one when the paths change. 3. Use the application settings screen (least friendly as the user would have to enter it).
... View more
05-28-2012
08:28 AM
|
0
|
0
|
138
|
POST
|
Those files are generated by the sample when you go offline.
... View more
05-28-2012
08:23 AM
|
0
|
0
|
671
|
POST
|
You could use a while loop checking for connection, only exiting when it succeeds. After that, load the maps.
... View more
05-24-2012
11:31 AM
|
0
|
0
|
143
|
POST
|
Your map services should show in Internet Explorer in the path http://SERVER/ArcGIS/rest/services In your app, use a path like @"http://SERVER/ArcGIS/rest/services/Addresses/MapServer" Sorry, the code to load that is here: AGSDynamicMapServiceLayer* layer = [AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL:[NSURL URLWithString:kLabelsAddressURL]]; layer.visibleLayers = [NSArray arrayWithObjects:[NSNumber numberWithInt:0], nil]; [self.mapView addMapLayer:layer withName:@"Address Labels"];
... View more
05-18-2012
04:03 AM
|
0
|
0
|
247
|
POST
|
Use AGSQuery and AGSQueryTask instead, for complex queries.
... View more
05-11-2012
08:17 AM
|
0
|
0
|
454
|
POST
|
I'm curious if the new version fixed the problem before we upgrade. I don't see this mentioned in the What's New.
... View more
04-10-2012
05:35 AM
|
0
|
0
|
533
|
POST
|
I have my tile set broken down into bundles for each scale. They vary from a few K to 6.7GB in size. Total size in the app's Documents is 11.5GB. (that's the exploded map cache) I haven't tried .tpk files yet.
... View more
03-26-2012
06:56 AM
|
0
|
0
|
494
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|