ui
                                
                                 ui copied to clipboard
                                
                                    ui copied to clipboard
                            
                            
                            
                        MapMarker click error
On Android, when zooming the map and one finger is on a MapMarker the app crashes.
The workaround that worked for me was to comment the line that removes the control in:
internal void NotifyMapChangeToControl(double pixelsWidth, double pixelsHeight, View2D view, IProjection projection, MapControl mapControl) { if (mapControl != null && mapControl.Handle != IntPtr.Zero) { ///Maybe check if the control is pressed before romove //this.RemoveView(mapControl.BaseView); if (mapControl.SetLayout(pixelsWidth, pixelsHeight, view, projection)) { this.AddView(mapControl.BaseView, mapControl.BaseView.LayoutParameters); } } }
AddView probably replaces the view when it is added again. Will try and figure out a better way to update the marker position.