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