ui icon indicating copy to clipboard operation
ui copied to clipboard

MapMarker click error

Open rodionsh opened this issue 11 years ago • 2 comments

On Android, when zooming the map and one finger is on a MapMarker the app crashes.

rodionsh avatar Sep 27 '14 07:09 rodionsh

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); } } }

rodionsh avatar Sep 27 '14 15:09 rodionsh

AddView probably replaces the view when it is added again. Will try and figure out a better way to update the marker position.

xivk avatar Sep 29 '14 14:09 xivk