Hi,
I am trying to migrate ThinkGEO XamarinForms to MAUI, it seems the implementation has changed.
Not sure what to do to make the previous code work…
-
Setting Current Extent
In v13, we could set the CurrentExtent as below.
mapView.CurrentExtent = myCustomExtent;
In v14, CurrentExtent setter seem to be hided. How could I set it in v14? -
Touch/Tap event
In v13, we have below event handlers and the args is TouchMapViewEventArgsmapView.MapSingleTap -= mapView_MapClick;
mapView.MapSingleTap += mapView_MapClick;mapView.MapDoubleTap -= mapView_MapDoubleClick;
mapView.MapDoubleTap += mapView_MapDoubleClick;
But in v14, I think they have changed to
mapView.SingleTap -= mapView_MapClick;
mapView.SingleTap += mapView_MapClick;
mapView.DoubleTap -= mapView_MapDoubleClick;
mapView.DoubleTap += mapView_MapDoubleClick;
However, the eventArgs SingleTapMapViewEventArgs,DoubleTapMapViewEventArgs does not have property, PointInWorldCoordinate anymore. How to retrieve this property in v14?
- ZoomMapTool
In v13, we could hide the zoomMapTool by
mapView.MapTools.ZoomMapTool.IsEnabled = false;
But in v14, mapView.MapTools.ZoomMapTool is no longer exist, how could I disable the zoomMapTool?
- ZoomLevelSet
In v13, we could do
var defaultMapScale = mapView.ZoomLevelSet.ZoomLevel12.Scale;
but in v14, ZoomLevelSet is no longer exist, how could I do the same thing?
Thank you