User Tools

Site Tools


thinkgeo.mapsuite.formsedition.adapters.mapviewadapter

Table of Contents

ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

<!– Class –> Class MapViewAdapter.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary

Protected Constructors

Name Parameters DeclaringType Summary
Protected MethodMapViewAdapter Initializes a new instance of the class.

Public Methods

Name Parameters DeclaringType Summary
Public MethodCenterAt PointShape Locates the map center to the specified world point.
Public MethodCreateConcrete MapElementAdapter Creates the concrete.
Public MethodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodRefresh This method will simulate the Refresh interaction. Refreshes current map control.
Public MethodToString Object
Public MethodZoomTo PointShape, Double This method zooms current map to a specified position and scale.
Public MethodZoomTo BaseShape This method zooms current map to the target shape.
Public MethodZoomToNextExtent Zooms to next extent.
Public MethodZoomToPreviousExtent Zooms to previous extent.
Public MethodZoomToScale Double Zooms the map to a provided scale. This method will simulate the ZoomToScale interaction.

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodCreateConcreteCore MapElementAdapter Creates the concrete core.
Protected MethodDispose Boolean Releases unmanaged and - optionally - managed resources.
Protected MethodFinalize Object(overriden)
Protected MethodMemberwiseClone Object
Protected MethodOnCurrentExtentChanged CurrentExtentChangedMapViewEventArgs Handles the event.
Protected MethodOnCurrentExtentChanging CurrentExtentChangingMapViewEventArgs Handles the event.
Protected MethodOnCurrentScaleChanged CurrentScaleChangedMapViewEventArgs Handles the event.
Protected MethodOnCurrentScaleChanging CurrentScaleChangingMapViewEventArgs Handles the event.
Protected MethodOnMapDoubleTap TouchMapViewEventArgs Handles the event.
Protected MethodOnMapLongPress TouchMapViewEventArgs Handles the event.
Protected MethodOnMapSingleTap TouchMapViewEventArgs Handles the event.
Protected MethodOnMapTouchDown TouchMapViewEventArgs Handles the event.
Protected MethodOnMapTouchMove TouchMapViewEventArgs Handles the event.
Protected MethodOnMapTouchUp TouchMapViewEventArgs Handles the event.
Protected MethodRegisterCollectionSynchronization GeoCollection<FormsItem>, GeoCollection<ConcreteItem> MapElementAdapter

Public Properties

Name Return DeclaringType Summary
Public PropertyAdornmentOverlayAdapter AdornmentOverlayAdapter Gets or sets the adornment overlay.
Public PropertyConcrete Object MapElementAdapter Gets or sets the concrete.
Public PropertyCurrentExtent RectangleShape Gets or sets the current extent of the MapControl.
Public PropertyDisplayDensity Single Gets the display density.
Public PropertyEditOverlayAdapter EditInteractiveOverlayAdapter Gets the edit overlay adapter.
Public PropertyMapToolsAdapter MapToolsAdapter Gets the map tools adapter.
Public PropertyMapUnit GeographyUnit Gets or sets the map unit used by the MapControl.
Public PropertyOverlays GeoCollection<Overlay> This property gets the collection of Overlays in the MapControl.
Public PropertyTrackOverlayAdapter TrackInteractiveOverlayAdapter Gets the track overlay adapter.
Public PropertyZoomLevelSet ZoomLevelSet This property gets or sets the ZoomLevelSet used for the MapView control.

Protected Properties

Name Return DeclaringType Summary

Public Events

Public Constructors

Protected Constructors

MapViewAdapter()

Initializes a new instance of the class.

Parameters

Name Type Description

Go Back

Public Methods

CenterAt(PointShape)

Locates the map center to the specified world point.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
worldCenter PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> A world point to locate the map.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

CreateConcrete()

Creates the concrete.

Return Value

Return Type Description
Object<!– System.Object –> System.Object.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapElementAdapter –> Go Back

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Refresh()

This method will simulate the Refresh interaction. Refreshes current map control.

Remarks

Refreshes all the existing overlays and map tools.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ZoomTo(PointShape, Double)

This method zooms current map to a specified position and scale.

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.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
worldCenter PointShape<!– ThinkGeo.MapSuite.Core.PointShape –>
targetScale Double<!– System.Double –> A double value indicates the scale to zoom the map to.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

ZoomTo(BaseShape)

This method zooms current map to the target shape.

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.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
targetExtent BaseShape<!– ThinkGeo.MapSuite.Core.BaseShape –> A ractangle shape to locates the map.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

ZoomToNextExtent()

Zooms to next extent.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

ZoomToPreviousExtent()

Zooms to previous extent.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

ZoomToScale(Double)

Zooms the map to a provided scale. This method will simulate the ZoomToScale interaction.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
targetScale Double<!– System.Double –> A target scale to zoom the map.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

Protected Methods

CreateConcreteCore()

Creates the concrete core.

Return Value

Return Type Description
Object<!– System.Object –> System.Object.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapElementAdapter –> Go Back

Dispose(Boolean)

Releases unmanaged and - optionally - managed resources.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
disposing Boolean<!– System.Boolean –> true to release both managed and unmanaged resources; false to release only unmanaged resources.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object(overriden) –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

OnCurrentExtentChanged(CurrentExtentChangedMapViewEventArgs)

Handles the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e CurrentExtentChangedMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.CurrentExtentChangedMapViewEventArgs –> The instance containing the event data.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

OnCurrentExtentChanging(CurrentExtentChangingMapViewEventArgs)

Handles the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e CurrentExtentChangingMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.CurrentExtentChangingMapViewEventArgs –> The instance containing the event data.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

OnCurrentScaleChanged(CurrentScaleChangedMapViewEventArgs)

Handles the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e CurrentScaleChangedMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.CurrentScaleChangedMapViewEventArgs –> The instance containing the event data.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

OnCurrentScaleChanging(CurrentScaleChangingMapViewEventArgs)

Handles the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e CurrentScaleChangingMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.CurrentScaleChangingMapViewEventArgs –> The instance containing the event data.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

OnMapDoubleTap(TouchMapViewEventArgs)

Handles the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –> The instance containing the event data.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

OnMapLongPress(TouchMapViewEventArgs)

Handles the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –> The instance containing the event data.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

OnMapSingleTap(TouchMapViewEventArgs)

Handles the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –> The instance containing the event data.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

OnMapTouchDown(TouchMapViewEventArgs)

Handles the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –> The instance containing the event data.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

OnMapTouchMove(TouchMapViewEventArgs)

Handles the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –> The instance containing the event data.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

OnMapTouchUp(TouchMapViewEventArgs)

Handles the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –> The instance containing the event data.

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

RegisterCollectionSynchronization(GeoCollection<FormsItem>, GeoCollection<ConcreteItem>)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
formsItems GeoCollection<FormsItem><!– GeoCollection{FormsItem} –>
concreteItems GeoCollection<ConcreteItem><!– GeoCollection{ConcreteItem} –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapElementAdapter –> Go Back

Public Properties

AdornmentOverlayAdapter

Gets or sets the adornment overlay.

Return Value

Return Type
AdornmentOverlayAdapter<!– ThinkGeo.MapSuite.FormsEdition.Adapters.AdornmentOverlayAdapter –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

Concrete

Gets or sets the concrete.

Return Value

Return Type
Object<!– System.Object –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapElementAdapter –> Go Back

CurrentExtent

Gets or sets the current extent of the MapControl.

Remarks

The current extent stands for the extent of current position, this is very important metrics to caculate the scale.

Return Value

Return Type
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

DisplayDensity

Gets the display density.

Return Value

Return Type
Single<!– System.Single –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

EditOverlayAdapter

Gets the edit overlay adapter.

Return Value

Return Type
EditInteractiveOverlayAdapter<!– ThinkGeo.MapSuite.FormsEdition.Adapters.EditInteractiveOverlayAdapter –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

MapToolsAdapter

Gets the map tools adapter.

Return Value

Return Type
MapToolsAdapter<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapToolsAdapter –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

MapUnit

Gets or sets the map unit used by the MapControl.

Remarks

The MapUnit reflects the data unit.

Return Value

Return Type
GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

Overlays

This property gets the collection of Overlays in the MapControl.

Return Value

Return Type
GeoCollection<Overlay><!– ThinkGeo.MapSuite.Core.GeoCollection{ThinkGeo.MapSuite.FormsEdition.Overlay} –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

TrackOverlayAdapter

Gets the track overlay adapter.

Return Value

Return Type
TrackInteractiveOverlayAdapter<!– ThinkGeo.MapSuite.FormsEdition.Adapters.TrackInteractiveOverlayAdapter –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

ZoomLevelSet

This property gets or sets the ZoomLevelSet used for the MapView control.

Return Value

Return Type
ZoomLevelSet<!– ThinkGeo.MapSuite.Core.ZoomLevelSet –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

Protected Properties

Public Events

CurrentExtentChanged

Occurs when extent changed.

Event Arguments

Event Arguments
CurrentExtentChangedMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.CurrentExtentChangedMapViewEventArgs –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

CurrentExtentChanging

Occurs when extent changing.

Event Arguments

Event Arguments
CurrentExtentChangingMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.CurrentExtentChangingMapViewEventArgs –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

CurrentScaleChanged

Occurs when scale changed.

Event Arguments

Event Arguments
CurrentScaleChangedMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.CurrentScaleChangedMapViewEventArgs –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

CurrentScaleChanging

Occurs when scale changing.

Event Arguments

Event Arguments
CurrentScaleChangingMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.CurrentScaleChangingMapViewEventArgs –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

MapDoubleTap

Occurs when double tap.

Event Arguments

Event Arguments
TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

MapLongPress

Occurs when long press.

Event Arguments

Event Arguments
TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

MapSingleTap

Occurs when single tap.

Event Arguments

Event Arguments
TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

MapTouchDown

Occurs when touch down.

Event Arguments

Event Arguments
TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

MapTouchMove

Occurs when touch move.

Event Arguments

Event Arguments
TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

MapTouchUp

Occurs when touch up.

Event Arguments

Event Arguments
TouchMapViewEventArgs<!– ThinkGeo.MapSuite.FormsEdition.TouchMapViewEventArgs –>

<!– ThinkGeo.MapSuite.FormsEdition.Adapters.MapViewAdapter –> Go Back

NOTOC MapSuiteFormsEdition ThinkGeo.MapSuite.FormsEdition.Adapters UpdateDocumentation

thinkgeo.mapsuite.formsedition.adapters.mapviewadapter.txt · Last modified: 2017/03/16 21:59 (external edit)