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 float MapRotation { 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.
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¶
Pan(PanDirection, Int32)¶
void Pan(PanDirection direction, int percentage)
Parameters¶
direction
PanDirection
percentage
Int32
Pan(Single, Int32)¶
void Pan(float degree, int percentage)
Parameters¶
degree
Single
percentage
Int32
Pan(Single, Single)¶
void Pan(float offsetScreenX, float offsetScreenY)
Parameters¶
offsetScreenX
Single
offsetScreenY
Single
ZoomIn(Int32)¶
void ZoomIn(int percentage)
Parameters¶
percentage
Int32
ZoomOut(Int32)¶
void ZoomOut(int percentage)
Parameters¶
percentage
Int32
ZoomIn()¶
Zooms the map in for one level.
void ZoomIn()
ZoomOut()¶
Zooms the map out for one level.
void ZoomOut()
ZoomInByAnchorPoint(ScreenPointF)¶
void ZoomInByAnchorPoint(ScreenPointF touchPosition)
Parameters¶
touchPosition
ScreenPointF
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.
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.
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.
Refresh()¶
This method will simulate the Refresh interaction. Refreshes current map control.
void Refresh()
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.
Refresh(Overlay)¶
This method will simulate the Refresh interaction. Refreshes a specified overlay.
void Refresh(Overlay overlay)
Parameters¶
overlay
Overlay
Overlay to be refreshed.
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.
ZoomToPreviousExtent()¶
Zooms to previous extent.
void ZoomToPreviousExtent()
ZoomToNextExtent()¶
Zooms to next extent.
void ZoomToNextExtent()
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;