IMapViewAdapter¶
Namespace: ThinkGeo.UI.XamarinForms.Adapters
Class IMapViewAdapter.
public interface IMapViewAdapter : IMapElementAdapter, System.IDisposable
Implements IMapElementAdapter, IDisposable
Properties¶
AdornmentOverlayAdapter¶
Gets or sets the adornment overlay.
public abstract IAdornmentOverlayAdapter AdornmentOverlayAdapter { get; }
Property Value¶
IAdornmentOverlayAdapter
The adornment overlay.
ZoomLevelSet¶
This property gets or sets the ZoomLevelSet used for the MapView control.
public abstract ZoomLevelSet ZoomLevelSet { get; set; }
Property Value¶
ZoomLevelSet
MapUnit¶
Gets or sets the map unit used by the MapControl.
public abstract GeographyUnit MapUnit { get; set; }
Property Value¶
GeographyUnit
Remarks:
The MapUnit reflects the data unit.
MinimumScale¶
public abstract double MinimumScale { get; set; }
Property Value¶
MaximumScale¶
public abstract double MaximumScale { get; set; }
Property Value¶
MapRotation¶
public abstract double MapRotation { get; set; }
Property Value¶
RotationEnabled¶
public abstract bool RotationEnabled { get; set; }
Property Value¶
CurrentExtent¶
Gets or sets the current extent of the MapControl.
public abstract RectangleShape CurrentExtent { get; set; }
Property Value¶
RectangleShape
Remarks:
The current extent stands for the extent of current position, this is very important metrics to caculate the scale.
CenterPoint¶
public abstract PointShape CenterPoint { get; set; }
Property Value¶
PointShape
MapScale¶
public abstract double MapScale { get; set; }
Property Value¶
DisplayDensity¶
Gets the display density.
public abstract float DisplayDensity { get; }
Property Value¶
Single
The display density.
Overlays¶
This property gets the collection of Overlays in the MapControl.
public abstract GeoCollection<Overlay> Overlays { get; }
Property Value¶
GeoCollection<Overlay>
MapToolsAdapter¶
Gets the map tools adapter.
public abstract IMapToolsAdapter MapToolsAdapter { get; }
Property Value¶
IMapToolsAdapter
The map tools adapter.
TrackOverlayAdapter¶
Gets the track overlay adapter.
public abstract ITrackInteractiveOverlayAdapter TrackOverlayAdapter { get; }
Property Value¶
ITrackInteractiveOverlayAdapter
The track overlay adapter.
EditOverlayAdapter¶
Gets the edit overlay adapter.
public abstract IEditInteractiveOverlayAdapter EditOverlayAdapter { get; }
Property Value¶
IEditInteractiveOverlayAdapter
The edit overlay adapter.
ExtentOverlayAdapter¶
public abstract IExtentInteractiveOverlayAdapter ExtentOverlayAdapter { get; }
Property Value¶
IExtentInteractiveOverlayAdapter
Methods¶
Refresh()¶
This method will simulate the Refresh interaction. Refreshes current map control.
void Refresh()
Remarks:
Refreshes all the existing overlays and map tools.
RefreshAsync()¶
This method will simulate the Refresh interaction. Refreshes current map control.
Task RefreshAsync()
Returns¶
Remarks:
Refreshes all the existing overlays and map tools.
Refresh(IEnumerable<Overlay>)¶
This method will simulate the Refresh interaction. Refreshes a specified overlay collection.
void Refresh(IEnumerable<Overlay> overlays)
Parameters¶
overlays IEnumerable<Overlay>
A collection of overlay to be refreshed.
RefreshAsync(IEnumerable<Overlay>)¶
This method will simulate the Refresh interaction. Refreshes a specified overlay collection.
Task RefreshAsync(IEnumerable<Overlay> overlays)
Parameters¶
overlays IEnumerable<Overlay>
A collection of overlay to be refreshed.
Returns¶
Refresh(Overlay)¶
This method will simulate the Refresh interaction. Refreshes a specified overlay.
void Refresh(Overlay overlay)
Parameters¶
overlay Overlay
Overlay to be refreshed.
RefreshAsync(Overlay)¶
This method will simulate the Refresh interaction. Refreshes a specified overlay.
Task RefreshAsync(Overlay overlay)
Parameters¶
overlay Overlay
Overlay to be refreshed.
Returns¶
CenterAt(PointShape)¶
Locates the map center to the specified world point.
void CenterAt(PointShape worldCenter)
Parameters¶
worldCenter PointShape
A world point to locate the map.
CenterAtAsync(PointShape)¶
Locates the map center to the specified world point.
Task CenterAtAsync(PointShape worldCenter)
Parameters¶
worldCenter PointShape
A world point to locate the map.
Returns¶
CenterAt(Feature)¶
Locates the map center to the center point of the given feature.
void CenterAt(Feature feature)
Parameters¶
feature Feature
A feature to locate the map.
CenterAtAsync(Feature)¶
Locates the map center to the center point of the given feature.
Task CenterAtAsync(Feature feature)
Parameters¶
feature Feature
A feature to locate the map.
Returns¶
CenterAt(Double, Double)¶
Locates the map center to the worldX and worldY.
void CenterAt(double worldX, double worldY)
Parameters¶
worldX Double
The x of the world point.
worldY Double
The y of the world point.
CenterAtAsync(Double, Double)¶
Locates the map center to the worldX and worldY.
Task CenterAtAsync(double worldX, double worldY)
Parameters¶
worldX Double
The x of the world point.
worldY Double
The y of the world point.
Returns¶
Pan(PanDirection, Int32)¶
void Pan(PanDirection direction, int percentage)
Parameters¶
direction PanDirection
percentage Int32
PanAsync(PanDirection, Int32)¶
Task PanAsync(PanDirection direction, int percentage)
Parameters¶
direction PanDirection
percentage Int32
Returns¶
Pan(Single, Int32)¶
void Pan(float degree, int percentage)
Parameters¶
degree Single
percentage Int32
PanAsync(Single, Int32)¶
Task PanAsync(float degree, int percentage)
Parameters¶
degree Single
percentage Int32
Returns¶
Pan(Single, Single)¶
void Pan(float offsetScreenX, float offsetScreenY)
Parameters¶
offsetScreenX Single
offsetScreenY Single
PanAsync(Single, Single)¶
Task PanAsync(float offsetScreenX, float offsetScreenY)
Parameters¶
offsetScreenX Single
offsetScreenY Single
Returns¶
ZoomIn()¶
Zooms the map in for one level.
void ZoomIn()
ZoomInAsync()¶
Task ZoomInAsync()
Returns¶
ZoomIn(Int32)¶
void ZoomIn(int percentage)
Parameters¶
percentage Int32
ZoomInAsync(Int32)¶
Task ZoomInAsync(int percentage)
Parameters¶
percentage Int32
Returns¶
ZoomOut()¶
Zooms the map out for one level.
void ZoomOut()
ZoomOutAsync()¶
Task ZoomOutAsync()
Returns¶
ZoomOut(Int32)¶
void ZoomOut(int percentage)
Parameters¶
percentage Int32
ZoomOutAsync(Int32)¶
Task ZoomOutAsync(int percentage)
Parameters¶
percentage Int32
Returns¶
ZoomInByAnchorPoint(ScreenPointF)¶
void ZoomInByAnchorPoint(ScreenPointF touchPosition)
Parameters¶
touchPosition ScreenPointF
ZoomInByAnchorPointAsync(ScreenPointF)¶
Task ZoomInByAnchorPointAsync(ScreenPointF touchPosition)
Parameters¶
touchPosition ScreenPointF
Returns¶
ZoomTo(BaseShape)¶
This method zooms current map to the target shape.
void ZoomTo(BaseShape targetExtent)
Parameters¶
targetExtent BaseShape
A ractangle shape to locates the map.
Remarks:
When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.
ZoomToAsync(BaseShape)¶
This method zooms current map to the target shape.
Task ZoomToAsync(BaseShape targetExtent)
Parameters¶
targetExtent BaseShape
A ractangle shape to locates the map.
Returns¶
Remarks:
When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.
ZoomTo(Feature)¶
This method zooms current map to the specified feature.
void ZoomTo(Feature feature)
Parameters¶
feature Feature
A feature to locates the map.
Remarks:
When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.
ZoomToAsync(Feature)¶
This method zooms current map to the specified feature.
Task ZoomToAsync(Feature feature)
Parameters¶
feature Feature
A feature to locates the map.
Returns¶
Remarks:
When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.
ZoomTo(PointShape, Double)¶
This method zooms current map to a specified position and scale.
void ZoomTo(PointShape worldCenter, double targetScale)
Parameters¶
worldCenter PointShape
A world center to zoom the map to.
targetScale Double
A double value indicates the scale to zoom the map to.
Remarks:
When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.
ZoomToAsync(PointShape, Double)¶
This method zooms current map to a specified position and scale.
Task ZoomToAsync(PointShape worldCenter, double targetScale)
Parameters¶
worldCenter PointShape
A world center to zoom the map to.
targetScale Double
A double value indicates the scale to zoom the map to.
Returns¶
Remarks:
When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.
ZoomToScale(Double)¶
Zooms the map to a provided scale. This method will simulate the ZoomToScale interaction.
void ZoomToScale(double targetScale)
Parameters¶
targetScale Double
A target scale to zoom the map.
ZoomToScaleAsync(Double)¶
Zooms the map to a provided scale. This method will simulate the ZoomToScale interaction.
Task ZoomToScaleAsync(double targetScale)
Parameters¶
targetScale Double
A target scale to zoom the map.
Returns¶
ZoomToPreviousExtent()¶
Zooms to previous extent.
void ZoomToPreviousExtent()
ZoomToPreviousExtentAsync()¶
Zooms to previous extent.
Task ZoomToPreviousExtentAsync()
Returns¶
ZoomToNextExtent()¶
Zooms to next extent.
void ZoomToNextExtent()
ZoomToNextExtentAsync()¶
Zooms to next extent.
Task ZoomToNextExtentAsync()
Returns¶
Events¶
MapLongPress¶
Occurs when [map long press].
public abstract event EventHandler<TouchMapViewEventArgs> MapLongPress;
MapSingleTap¶
Occurs when [map single tap].
public abstract event EventHandler<TouchMapViewEventArgs> MapSingleTap;
MapDoubleTap¶
Occurs when [map double tap].
public abstract event EventHandler<TouchMapViewEventArgs> MapDoubleTap;
MapTouchMove¶
Occurs when [map touch move].
public abstract event EventHandler<TouchMapViewEventArgs> MapTouchMove;
MapTouchUp¶
Occurs when [map touch up].
public abstract event EventHandler<TouchMapViewEventArgs> MapTouchUp;
MapTouchDown¶
Occurs when [map touch down].
public abstract event EventHandler<TouchMapViewEventArgs> MapTouchDown;
CurrentExtentChanging¶
Occurs when [current extent changing].
public abstract event EventHandler<CurrentExtentChangingMapViewEventArgs> CurrentExtentChanging;
CurrentExtentChanged¶
Occurs when [current extent changed].
public abstract event EventHandler<CurrentExtentChangedMapViewEventArgs> CurrentExtentChanged;
CurrentScaleChanging¶
Occurs when [current scale changing].
public abstract event EventHandler<CurrentScaleChangingMapViewEventArgs> CurrentScaleChanging;
CurrentScaleChanged¶
Occurs when [current scale changed].
public abstract event EventHandler<CurrentScaleChangedMapViewEventArgs> CurrentScaleChanged;
CollectedMapArguments¶
Occurs after collected MapArguments.
public abstract event EventHandler<CollectedMapArgumentsMapViewEventArgs> CollectedMapArguments;