<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Map view IS panning or zooming in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489798#M4184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;KVO to the rescue!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should attach a key-value-observer (KVO) to the panning/zooming properties of the mapview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When these properties toggle ON/OFF, your observer will automatically be informed. You can use that to update the text label.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More info on KVO here : &lt;/SPAN&gt;&lt;A href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html"&gt;http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2012 17:15:07 GMT</pubDate>
    <dc:creator>DiveshGoyal</dc:creator>
    <dc:date>2012-09-07T17:15:07Z</dc:date>
    <item>
      <title>Map view IS panning or zooming</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489791#M4177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Runtime SDK for iOS v2.3 provides "panning" &amp;amp; "zooming" in "AGSMapView" for deciding whether mapView is panning or zooming , but how can I use them ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Frank&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 23:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489791#M4177</guid>
      <dc:creator>FrankLin1</dc:creator>
      <dc:date>2012-08-27T23:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Map view IS panning or zooming</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489792#M4178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You cannot use them. It's just for information purpose only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 15:19:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489792#M4178</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-08-28T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Map view IS panning or zooming</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489793#M4179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But how can I update something like label when map is panning...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 07:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489793#M4179</guid>
      <dc:creator>FrankLin1</dc:creator>
      <dc:date>2012-08-29T07:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Map view IS panning or zooming</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489794#M4180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you please elaborate what you are trying to achieve?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 16:57:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489794#M4180</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-08-29T16:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Map view IS panning or zooming</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489795#M4181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;MapView posts notifications on panning and zooming, you can register for them with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(scaleDidChange:) name:@"MapDidEndZooming" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mapDidEndPanning:) name:@"MapDidEndPanning" object:nil];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then implement the callback methods (these are your own custom methods):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;-(IBAction)scaleDidChange:(NSNotification *)notification {

&amp;nbsp;&amp;nbsp; //do Something here
}
-(IBAction)mapDidEndPanning:(NSNotification *)notification {

&amp;nbsp;&amp;nbsp; //do Something here
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this what you were looking for?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489795#M4181</guid>
      <dc:creator>ChristopherEbright</dc:creator>
      <dc:date>2021-12-11T21:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Map view IS panning or zooming</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489796#M4182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;MapView posts notifications on panning and zooming, you can register for them with this:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(scaleDidChange:) name:@"MapDidEndZooming" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mapDidEndPanning:) name:@"MapDidEndPanning" object:nil];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;then implement the callback methods (these are your own custom methods):&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;-(IBAction)scaleDidChange:(NSNotification *)notification {

&amp;nbsp;&amp;nbsp; //do Something here
}
-(IBAction)mapDidEndPanning:(NSNotification *)notification {

&amp;nbsp;&amp;nbsp; //do Something here
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Is this what you were looking for?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry , I'm looking for the MapView "panning" not "End Pan".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some UILabel added to the AGSMapView as subview , and I wanna update the label's positon when the map is panning , rotating and zooming . So I'm looking for some methods exactly called when the AGSMapView is panning.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:33:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489796#M4182</guid>
      <dc:creator>FrankLin1</dc:creator>
      <dc:date>2021-12-11T21:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Map view IS panning or zooming</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489797#M4183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Could you please elaborate what you are trying to achieve?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nimesh&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to show graphic symbol (Annotation) on the Map View , but I found no way to do a good job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use AGSGraphicsLayer to add graphic , and subclass the AGSMapView to catch it's touch methods , when it's rotating , I have to update the GraphicsLayer by called "datachanged" , it gave a bad performance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use UILabel to present the text symbol , and added to the AGSMapView as sub view , it will have a good performance when rotating , but when panning , particularly when user swipe to pan , I have no way to catch the panning operation so I can't update the label after swipe panning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use the AGSDynamicLayerView to add the UILabel by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UIView&amp;lt;AGSLayerView&amp;gt; *myDynamicLayerView = [self.mapView addMapLayer:[AGSGraphicsLayer graphicsLayer] withName:@"..."];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[myDynamicLayerView addSubView:myUILabelView];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It did a good job to attach the baseMap when swipe to pan , but when zooming or rotating , I have to do a complex transform to UILabel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...So , any way else ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Frank Lin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 10:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489797#M4183</guid>
      <dc:creator>FrankLin1</dc:creator>
      <dc:date>2012-08-30T10:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Map view IS panning or zooming</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489798#M4184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;KVO to the rescue!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should attach a key-value-observer (KVO) to the panning/zooming properties of the mapview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When these properties toggle ON/OFF, your observer will automatically be informed. You can use that to update the text label.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More info on KVO here : &lt;/SPAN&gt;&lt;A href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html"&gt;http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 17:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489798#M4184</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2012-09-07T17:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Map view IS panning or zooming</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489799#M4185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;KVO to the rescue!&lt;BR /&gt;&lt;BR /&gt;You should attach a key-value-observer (KVO) to the panning/zooming properties of the mapview.&lt;BR /&gt;When these properties toggle ON/OFF, your observer will automatically be informed. You can use that to update the text label.&lt;BR /&gt;&lt;BR /&gt;More info on KVO here : &lt;A href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi ~ Have you ever tried to use KVO for panning/zooming ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I implement the following code in the sub class of AGSMapView when touch ended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;- (void)begin2log{
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; preVisibleArea = self.visibleArea;
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%@",self.visibleArea);
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%d",self.panning);
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"A %d",self.animating);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; [super touchesEnded:panTouches withEvent:panEvent];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; while (self.visibleArea != preVisibleArea) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"YES");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%d",self.panning);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preVisibleArea = self.visibleArea;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; while (self.animating) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"YES");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%d",self.animating);
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%d",self.panning);
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"End");
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%@",self.visibleArea);
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By these code , I found panning/zooming is just the info when touch begin , and after the swipe touch end (and the map is panning), the map view's visibleArea/panning/zooming immediately changed , but the map is still panning . &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By double check the API document , I found map view has a property named animating , and this is what the property I'm looking for , but when I track this property , the map view stops animating panning/zooming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess in the SDK , the code holds panning/zooming is just an animation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does Esri plan to put ArcGIS Runtime SDK for iOS on the Github so that we can develop it together and make it better ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Frank Lin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489799#M4185</guid>
      <dc:creator>FrankLin1</dc:creator>
      <dc:date>2021-12-11T21:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Map view IS panning or zooming</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489800#M4186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;KVO to the rescue!&lt;BR /&gt;&lt;BR /&gt;You should attach a key-value-observer (KVO) to the panning/zooming properties of the mapview.&lt;BR /&gt;When these properties toggle ON/OFF, your observer will automatically be informed. You can use that to update the text label.&lt;BR /&gt;&lt;BR /&gt;More info on KVO here : &lt;A href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By implement following code , nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
- (void)viewDidLoad
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; [super viewDidLoad];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Init
&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSTiledMapServiceLayer *serviceLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:[NSURL URLWithString:@"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.mapView addMapLayer:serviceLayer withName:@"Hello"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //KVO
&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.mapView addObserver:self
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; forKeyPath:@"panning"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context:NULL];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.mapView addObserver:self
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; forKeyPath:@"zooming"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context:NULL];
}

- (void)observeValueForKeyPath:(NSString *)keyPath
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ofObject:(id)object
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; change:(NSDictionary *)change
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context:(void *)context {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //if panning changed
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ([keyPath isEqual:@"panning"]){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"Panning");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //if zooming changed
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ([keyPath isEqual:@"zooming"]){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"Zomming");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:33:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-view-is-panning-or-zooming/m-p/489800#M4186</guid>
      <dc:creator>FrankLin1</dc:creator>
      <dc:date>2021-12-11T21:33:27Z</dc:date>
    </item>
  </channel>
</rss>

