|
POST
|
You can listen for the AGSFeatureLayerDidLoadFeaturesNotification which gets fired by the AGSFeatureLayer whenever it fetches features from the service. Here's a sample that shows how it is used - Search Results for AGSFeatureLayerDidLoadFeaturesNotification · GitHub
... View more
06-15-2015
12:07 PM
|
0
|
2
|
762
|
|
POST
|
Have you tried installing the ArcGIS 10.2.2 for (Desktop, Engine, Server) Geodatabase and Feature Service Sync Optimization Patch ? See if that helps. Also, it looks like the server generated the geodatabase correctly, maybe the error occurs while trying to download it. Is IIS or the ArcGIS Web Adaptor having problems after serving out many geodatabases?To confirm this, you could try to manually get the geodatabase from the server machine's folder and put it on a client and see if it works. When you do this, you will need to first enable the geodatabase for sync by manually calling AGSGDBSyncTask#registerSyncEnabledGeodatabase: on the client.
... View more
06-04-2015
04:29 PM
|
0
|
0
|
977
|
|
POST
|
Thanks for the info. Can you make sure that layer is loaded before you call currentLOD() on it? We suspect that someone might pan/zoom the map before the layer is loaded which schedules the timer, and the timer too may get fired before the layer is loaded. This could lead to a crash.
... View more
05-26-2015
02:21 PM
|
0
|
1
|
1559
|
|
POST
|
There's more info on this in the Release notes for 10.1.1 (under the AGSGraphic section) Here's an excerpt - Removed property attributes. This is because the attributes are no longer stored as a dictionary in the Objective-C tier, but rather further down by core runtime in the C++ tier. You can use individual getter methods such as attributeAsStringForKey:, attributeAsDoubleForKey:exists:, andattributeAsDateForKey: to get the value of a particular attribute based on the data type you expect. You can use corresponding setter methods such as setAttributeWithString:forKey:,setAttributeWithDoubleForKey:, and so on, to set a new value for attributes. If you don't know the type of attribute, you can use attributeForKey: and setAttribute:forKey: instead, which work with NSNumber, NSString, NSDate, and NSNull types. Alternatively, you can use the method allAttributes to get a dictionary containing all the attributes. This dictionary represents a copy of the graphic's attributes, and modifying it won't affect the graphic. If you modify the dictionary, you then need to call setAllAttributes: by passing in the modified dictionary to update the graphic's attributes.
... View more
05-26-2015
02:05 PM
|
1
|
0
|
604
|
|
POST
|
Simon, What you're seeing is expected. The AGSPictureMarkerSymbol uses an image to render the symbol. The size of the symbol depends on the size of the image. So if the image is 6 pixels x 6 pixels, that's how big it'll be displayed on screen. Now, you can override the size property of the symbol to make it larger, but that would force the image to be scaled possibly making them fuzzy. When you pinch to zoom in, the feature layer waits till the gesture is over to re-render its content, and in the meanwhile, it just re-scales the content on screen. It does this because you could potentially have a lot of features in your layer, and re-rendering it while the gesture is in progress would be very CPU intensive and might deteriorate the responsiveness of the map. Thus, the symbol might temporarily appear larger as it is re-scaled while the gesture is in progress. And yes, this behavior is specifically tied to the "static" mode. The "dynamic" mode is more suitable to graphics layer (not feature layers) which typically have only a few graphics. In this mode, the content is drawn using the GPU (not CPU as with static mode). The GPU fares much better at re-rendering content on-the-fly while the gesture is in progress. So you would not see picture marker symbols temporarily appear fuzzy, they would always be their true size. But in both the cases, the picture marker symbol is drawn based on the size of the image (unless overriden in code)
... View more
05-19-2015
03:07 PM
|
1
|
0
|
818
|
|
POST
|
We too have seen intermittent crashes on the simulator in the following ways : Zooming in/out of the map aggressively (iPad 2 simulator only) Calling zoomToEnvelope on the map when the view controller loads Using AutoPan mode to zoom into the device location The good news is that so far we haven't seen the crash on a device, but we believe this issue stems from a bug in iOS 8. We have reported the issue to Apple by filing a radar - #18590356 NSURLSession will crash the application. Following is the code we submitted that reproduces the crash on iOS 8. We have escalated the issue to Apple through our business contact, but I suggest you also file an independent radar to add more weight to the issue. while (YES) { @autoreleasepool{ NSURL *url = [NSURL URLWithString:@"http://prod.lists.apple.com/archives/macnetworkprog/2014/Oct/msg00001.html"]; NSURLSessionConfiguration *config = [NSURLSessionConfiguration ephemeralSessionConfiguration]; NSURLSession *session = [NSURLSession sessionWithConfiguration:config delegate:self delegateQueue:nil]; NSURLSessionDataTask *task = [session dataTaskWithURL:url completionHandler: ^(NSData *data, NSURLResponse *response, NSError *error) { NSLog(@"response: %@", response); }]; [task resume]; [task cancel]; // *** It is this call to finishTasksAndInvalidate that seems to trigger the crash. // If I comment it out, no crash. //[session finishTasksAndInvalidate]; [session invalidateAndCancel]; } }
... View more
05-19-2015
12:09 PM
|
0
|
1
|
1122
|
|
POST
|
Hmmm, I can't get much out of that stack trace. I have a few questions that might help narrow things down a bit - Which tiled service are you using with the layer that encounters this crash? Is it an ArcGIS Online basemap service? Where in your app are you calling currentLOD() ? Is it on the main thread? Can you post some code that shows how you use it? I'm wondering if its timing related. Have you been able to repro this on both the simulator and a device? If its only device, which ones have you seen it on? What version of the Runtime SDK are you using? And what version of iOS?
... View more
05-18-2015
09:19 AM
|
0
|
3
|
1559
|
|
POST
|
Inside the callback won't have any affect because by that time the operation is already done.
... View more
05-08-2015
11:57 AM
|
0
|
1
|
1488
|
|
POST
|
Can you attach the report here, or copy-paste the stack trace?
... View more
05-08-2015
11:56 AM
|
0
|
6
|
1559
|
|
POST
|
At 10.0, ArcGIS Server introduced the compact cache format. You can generate tiles in this format from the server, then copy them over to a Mac and manually "package" them into a .bundle file (technically, these are referred to as Document Packages ) . To do this, create a folder on your Mac called "MyCache" whose internal structure contains the compact cache created by server. It should look something like this - MyCache |__ _alllayers |__ L00 |__ L01 |__ ... |__ conf.cdi |__ conf.xml Next, use the Finder application to rename the "MyCache" folder to "MyCache.bundle". The operating system will now treat your folder as a single file, except it will have the compact cache embedded in it. Add this file to your XCode project, or drag it into your application's file sharing directory in iTunes. (This step is described in detail for tile packages here , except you'll be doing it with the bundle files instead of a tile package) Then you can use this .bundle file with AGSLocalTiledLayer to display in the map view - self.tiledLayer = [AGSLocalTiledLayer localTiledLayerWithName:@"MyCache"];
... View more
05-08-2015
11:51 AM
|
1
|
0
|
852
|
|
POST
|
When you invoke the FindTask using executeWithParameters: , you get back a reference to the NSOperation representing the async operation. You can call cancel on the operation to stop it from processing or waiting for the response.
... View more
05-08-2015
11:08 AM
|
0
|
3
|
1488
|
|
POST
|
Unfortunately, we do not yet (v10.2.4) support true curves in our geometry objects; they are based on discrete vertices. We do plan to add support for curves in a future release. If you have a bezier curve already, you will need to "flatten" it , get its vertices, and add to a polyline/polygon geometry. On OSX, NSBezierPath has a handy function bezierPathByFlatteningPath . However, on iOS, UIBezierPath does not seem to have anything similar. Here's a stack overflow post that you may find helpful : ios - Flattening a CGPath - Stack Overflow
... View more
05-04-2015
10:01 AM
|
0
|
1
|
754
|
|
POST
|
Thanks for reporting this, Chris. I can confirm that is indeed a problem and it will be fixed in the next release.
... View more
04-29-2015
01:04 PM
|
0
|
1
|
1041
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-02-2025 12:39 PM | |
| 1 | 10-01-2024 12:36 PM | |
| 1 | 05-10-2024 02:32 PM | |
| 1 | 07-10-2023 11:12 AM | |
| 1 | 06-15-2023 09:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|