|
POST
|
Nicholas is correct. The other thing is with Quartz you may not need to know when your layer loads - depending on why you were listening for the load delegate. If it was for authentication purposes then the new AGSAuthenticationManager will handle that for you.
... View more
11-22-2016
02:25 PM
|
1
|
0
|
638
|
|
POST
|
Also - when you assign the map to the mapView - the mapView will start loading the map. If you were to call loadWithCompletion anytime after that, it's totally fine. It will either call back immediately if loading was done or failed or it will wait for currently in progress load to happen and call you back.
... View more
11-22-2016
02:10 PM
|
1
|
0
|
730
|
|
POST
|
James, The `AGSMap` class is `AGSLoadable`. This means you can call the `loadWithCompletion:` method on instances of `AGSMap` The AGSLoadable `loadWithCompetion` doc is this: ``` /** Loads data for the object asynchronously. The completion block is invoked upon completion. You can call this method any number of times, however only one attempt is made to load the data. If it is already loading, it will just continue to load (i.e. not force a reload). If it has already loaded successfully, the completion block will be invoked right away. If it has already failed to load, the completion block will be invoked right away with error previously encountered. This method supports multiple callers and will call them all back on completion. However, each caller's completion block will be invoked once and only once. @param completion block that is invoked when object loads successfully or fails to load. An error is passed to the block if the object fails to load. @since 100 @see `#cancelLoad` to cancel loading @see `#retryLoadWithCompletion:` to force reload */ ``` in swift 3 the code would look like so: ``` mapView.map?.load(){ error in if let error = error { print("error loading map: \(error)") } else{ print("map loaded successfully") } } ``` in objective-c: ``` [self.mapView.map loadWithCompletion:^(NSError * _Nullable error) { if (error){ NSLog(@"error loading: %@", error); } else{ NSLog(@"map loaded successfully"); } }]; ``` Many objects in 100.0.0 are AGSLoadable and have the same behavior.
... View more
11-22-2016
02:08 PM
|
1
|
0
|
730
|
|
POST
|
It has been removed in favor of KVO on the `drawStatus` property: ``` import UIKit import ArcGIS private var myKVOContext = 0 class ViewController: UIViewController { let mapView = AGSMapView(frame: CGRect.zero) override func viewDidLoad() { super.viewDidLoad() mapView.frame = view.bounds mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight] view.addSubview(mapView) mapView.map = AGSMap(basemapType: .streets, latitude: 0, longitude: 0, levelOfDetail: 0) mapView.addObserver(self, forKeyPath: "drawStatus", options: .new, context: &myKVOContext) } override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) { if context == &myKVOContext{ if keyPath == "drawStatus"{ print("drawStatus changed: \(mapView.drawStatus.rawValue)") } } else{ super.observeValue(forKeyPath: keyPath, of: object, change: change, context: context) } } } ```
... View more
11-22-2016
11:05 AM
|
1
|
0
|
872
|
|
POST
|
use the `attributionTextVisible` property instead now at final.
... View more
11-22-2016
10:57 AM
|
0
|
0
|
567
|
|
POST
|
James, There is a migration doc in progress. As soon as it is ready it will be made available. Also coming soon to github are the 10.2.x objective-c samples that have been ported to quartz so you can compare how to do things at 10.2.x to how you do the same in quartz. thanks, Ryan
... View more
11-22-2016
10:33 AM
|
1
|
1
|
488
|
|
POST
|
try this code for swift 3 ``` mapView.exportImage { (image, error) in if let error = error{ print("error: \(error)") } else if let image = image{ print("image exported!") } } ``` this for swift 2.3: ``` self.mapView?.exportImageWithCompletion({ (image, error) in if let error = error { print("error: \(error)") } else if let image = image{ print("success!") } }) ```
... View more
11-22-2016
10:17 AM
|
0
|
4
|
1732
|
|
POST
|
Can you try turning hit-testing off on a per-layer basis to narrow down what layer is causing the crash?
... View more
07-18-2016
09:05 AM
|
0
|
3
|
1899
|
|
POST
|
did you add the ArcGIS.bundle file to your project? If not, the magnifier probably won't show as it needs the image which is in the bundle.
... View more
07-18-2016
09:03 AM
|
2
|
0
|
636
|
|
POST
|
nowhere in your code you add an observer on "visibleAreaEnvelope" and it still crashes?
... View more
06-28-2016
03:28 PM
|
0
|
0
|
1281
|
|
POST
|
It looks like you had an observer on the some property of the mapView and that observer was dealloc'd and you didn't remove the obsverver. If that's the case just make sure to call removeObserver in the dealloc method of your observer (usually it's a view controller).
... View more
06-28-2016
03:18 PM
|
1
|
2
|
1281
|
|
POST
|
Marius, This is a threading bug in some of the ArcGIS for iOS runtime code that makes network requests. This bug will be fixed in our next release. Thank you
... View more
06-10-2016
11:29 AM
|
0
|
4
|
1845
|
|
POST
|
No, unfortunately there is no support for dispersal in the iOS SDK.
... View more
10-23-2015
09:37 AM
|
0
|
0
|
408
|
|
POST
|
The Popup expects the sourceURL to be an http based URL. Something like http://www.<some.domain>.com/logo.png
... View more
10-23-2015
09:36 AM
|
0
|
1
|
429
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-21-2025 11:36 AM | |
| 1 | 01-13-2025 02:52 PM | |
| 1 | 12-04-2018 09:10 AM | |
| 1 | 07-08-2021 07:45 AM | |
| 1 | 06-14-2021 08:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-10-2025
01:36 PM
|