public void UnbindFromNative() { if (map != null) { if (singleTap != null) { map.RemoveGestureRecognizer(singleTap); } if (doubleTap != null) { map.RemoveGestureRecognizer(doubleTap); } } singleTap = null; doubleTap = null; map = null; }
protected override void OnDetached() { mapView.RemoveGestureRecognizer(tapGesture); tapGesture.Dispose(); tapGesture = null; longPressGesture.Dispose(); longPressGesture = null; mapView = null; behavior = null; }