Selection is broken (iOS 12)

Hi, guys.
I've updated SfMaps to the latest version
just to find out that feature selection is broken for iOS 12. When I tap on one area, another area is being selected.
It still works correctly for iOS 10.

Attachment: ao_36a11cc0.zip

3 Replies

MP Michael Prabhu M Syncfusion Team October 1, 2018 12:35 PM UTC

Hi Ivan, 
 
Greetings from Syncfusion, we are able to reproduce the issue in the latest iOS 12 device, since we can get different shapes bounds while selecting in iOS 11 and iOS 12 devices. We will analyze further on this and will fix this issue in our upcoming volume 3 SP1 release which is expected to be rolled out at the end of October 2018.  
Thanks, 
Michael  
 



KO kola October 17, 2018 09:10 AM UTC

Please fix the Layer.ShapeSelectionChange event bug as well.
Since the Layer.ShapeSelected event is now deprecated, we all forced to use this ShapeSelectionChange event.
But it's broken. 
We have any (even hollow) method subscribed to this event and user taps the shape on our map (attached to the comment). Here is the exception: 

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.ArrayList.get_Item (System.Int32 index) [0x0000d] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.0.26/src/Xamarin.iOS/external/corefx/src/System.Runtime.Extensions/src/System/Collections/ArrayList.cs:179 
  at Syncfusion.SfMaps.XForms.iOS.MapDependencyServiceMapping.NativeLayer_ShapeSelectionChanged (System.Object sender, Syncfusion.SfMaps.iOS.ShapeSelectedEventArgs e) [0x000a1] in <384d18466b214b31a8971ca33a3dc31f>:0 
  at Syncfusion.SfMaps.iOS.SFShapeFileLayer.OnShapeSelectionChanged (Syncfusion.SfMaps.iOS.ShapeSelectedEventArgs args) [0x00008] in <2e0e1ea7b11c4fd28fb109e3b33dbe83>:0 
  at Syncfusion.SfMaps.iOS.SFShapeFileLayer.CollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00176] in <2e0e1ea7b11c4fd28fb109e3b33dbe83>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_object_NotifyCollectionChangedEventArgs(object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00018] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.0.26/src/Xamarin.iOS/external/corefx/src/System.ObjectModel/src/System/Collections/ObjectModel/ObservableCollection.cs:263 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.0.26/src/Xamarin.iOS/external/corefx/src/System.ObjectModel/src/System/Collections/ObjectModel/ObservableCollection.cs:338 
  at System.Collections.ObjectModel.ObservableCollection`1[T].InsertItem (System.Int32 index, T item) [0x0001a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.0.26/src/Xamarin.iOS/external/corefx/src/System.ObjectModel/src/System/Collections/ObjectModel/ObservableCollection.cs:196 
  at System.Collections.ObjectModel.Collection`1[T].Add (T item) [0x00020] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.0.26/src/Xamarin.iOS/external/corefx/src/Common/src/CoreLib/System/Collections/ObjectModel/Collection.cs:73 
  at Syncfusion.SfMaps.iOS.SFShapeLayer.handleSingleTap (UIKit.UITapGestureRecognizer tapper) [0x001b4] in <2e0e1ea7b11c4fd28fb109e3b33dbe83>:0 
  at UIKit.UITapGestureRecognizer+Callback.Activated (UIKit.UITapGestureRecognizer sender) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.0.26/src/Xamarin.iOS/UIKit/UIGestureRecognizer.cs:205 


Attachment: mo_eb66d1be.zip


MP Michael Prabhu M Syncfusion Team October 17, 2018 11:23 AM UTC

Hi Ivan, 
 
Query: ArgumentOutOfRangeException raised on selecting the shape. 
 
We have checked the reported scenario by subscribing the ShapeSelectionChanged event with our shape files, but we were unable to reproduce the reported issue at our end.  
 
Since it is not reproduced with our shape files, could you please share the ItemSource which you have used for the provided shape file(mo_cut.shp)?  
 
This would help us to reproduce your scenario and can provide better solution. 

Thanks, 
Michael 


Loader.
Up arrow icon