User Tools

Site Tools


thinkgeo.mapsuite.androidedition.markeroverlay

This is an old revision of the document!


ThinkGeo.MapSuite.AndroidEdition.MarkerOverlay

<!– Class –> This class represents an overlay which maintaining markers.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodMarkerOverlay Initializes a new instance of the class.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodClose Overlay This method will simulate the Close interaction.
Public MethodDispose Overlay This method dispose unmanaged resource used in this class.
Public MethodDraw MapArguments, OverlayRefreshType Overlay This method draws the overlay with the provided extent in world coordinate.
Public MethodEquals Object Object
Public MethodGetBoundingBox Overlay This method gets a bounding box of the Overlay.
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodInitialize MapArguments Overlay This method initializes overlay object.
Public MethodOpen Overlay This method will simulate the Open interaction.
Public MethodPostTransform TransformArguments, MapArguments Overlay This method will simulate the PostTransform interaction.
Public MethodRefresh Overlay This method refreshes all the content in the OverlayCanvas. For example, LayerOverlay with multiple tiles; when the style of one layer is changed, call Refresh to refresh all the tiles to accept new styles.
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodCloseCore Overlay This protected virtual method is the Core method of Close API.
Protected MethodDispose Boolean Overlay(overriden) Releases unmanaged and - optionally - managed resources.
Protected MethodDrawCore MapArguments, OverlayRefreshType Overlay(overriden) This method creates markers in the provided world extent and places on the overlay.
Protected MethodDrawException GeoCanvas, Exception Overlay This method will draw on the canvas when the layer.Draw throw exception and the DrawExceptionMode is set to DrawException instead of ThrowException.
Protected MethodDrawExceptionCore GeoCanvas, Exception Overlay This method will draw on the canvas when the layer.Draw throw exception and the DrawExceptionMode is set to DrawException instead of ThrowException.
Protected MethodFinalize Object(overriden)
Protected MethodGetBoundingBoxCore Overlay This method returns the bounding box of the Overlay.
Protected MethodInitializeCore MapArguments Overlay This method initializes overlay object.
Protected MethodMemberwiseClone Object
Protected MethodOnDrawingException DrawingExceptionOverlayEventArgs Overlay This method raises before the overlay is drawing exception.
Protected MethodOnDrawnException DrawnExceptionOverlayEventArgs Overlay This method raises after the overlay is drawn exception.
Protected MethodOpenCore Overlay This protected virtual method is the Core method of Open API.
Protected MethodPostTransformCore TransformArguments, MapArguments Overlay(overriden) This protected virtual method is the Core method of PostTransform API.
Protected MethodRefreshCore Overlay This method refreshes all the content in the OverlayCanvas. For example, LayerOverlay with multiple tiles; when the style of one layer is changed, call Refresh to refresh all the tiles to accept new styles.

Public Properties

Name Return DeclaringType Summary
Public PropertyAttribution String Overlay Gets or sets the attribution for this overlay.
Public PropertyDrawingExceptionMode DrawingExceptionMode Overlay This property gets and sets the DrawingExceptionMode used when an exception occurs during drawing.
Public PropertyDrawingQuality DrawingQuality Overlay Gets or sets the drawingQuality for this overlay.
Public PropertyIsEmpty Boolean Overlay This property gets if this overlay is empty or not.
Public PropertyIsVisible Boolean Overlay Gets or sets if this overlay is visible.
Public PropertyMapArguments MapArguments Overlay Gets or sets the mapArguments for this overlay.
Public PropertyMarkers GeoCollection<Marker> A collection that holds all the marker objects adding in the overlay.
Public PropertyName String Overlay Gets or sets the name of this overaly.
Public PropertyOpacity Double Overlay Gets or sets the opacity for this overlay.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary
Public EventDrawingException DrawingExceptionOverlayEventArgs Overlay Occurs before exception is drawing on map.
Public EventDrawnException DrawnExceptionOverlayEventArgs Overlay Occurs after exception is drawn on map.

Public Constructors

MarkerOverlay()

Initializes a new instance of the class.

Parameters

Name Type Description

Go Back

Protected Constructors

Public Methods

Close()

This method will simulate the Close interaction.

Return Value

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

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Dispose()

This method dispose unmanaged resource used in this class.

Return Value

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

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Draw(MapArguments, OverlayRefreshType)

This method draws the overlay with the provided extent in world coordinate.

Return Value

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

Parameters

Name Type Description
mapArguments MapArguments<!– ThinkGeo.MapSuite.AndroidEdition.MapArguments –> This parameter maintains current map information for calculating mechanism.
refreshType OverlayRefreshType<!– ThinkGeo.MapSuite.AndroidEdition.OverlayRefreshType –> This parameter indicates whether the elements of this overlay needs to be refreshed. For example, TileOverlay is formed by tiles. When panning the map around, the existing tile doesn't need to be redraw, the only thing we need to do is modifying the position of these tiles. On another hand, when click to change the style of the overlay, we need to redraw the tile images to change the appearance. So we need refresh mode.

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Equals(Object)

Return Value

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

Parameters

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

<!– System.Object –> Go Back

GetBoundingBox()

This method gets a bounding box of the Overlay.

Remarks

This method is the concrete wrapper for the abstract method GetBoundingBoxCore. This method returns the bounding box of the Overlay.

As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> A RectangleShape indicating the bounding box of this overlay.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> 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

Initialize(MapArguments)

This method initializes overlay object.

Remarks

This is a wrapper method for the virtual method InitializeCore.

Return Value

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

Parameters

Name Type Description
mapArguments MapArguments<!– ThinkGeo.MapSuite.AndroidEdition.MapArguments –> This parameter maintains current map information for calculating mechanism.

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Open()

This method will simulate the Open interaction.

Return Value

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

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

PostTransform(TransformArguments, MapArguments)

This method will simulate the PostTransform interaction.

Return Value

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

Parameters

Name Type Description
transformInfo TransformArguments<!– ThinkGeo.MapSuite.AndroidEdition.TransformArguments –> This parameter maintains the transfrom information for calculating transform.
mapArguments MapArguments<!– ThinkGeo.MapSuite.AndroidEdition.MapArguments –> This parameter maintains current map information for calculating mechanism.

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Refresh()

This method refreshes all the content in the OverlayCanvas. For example, LayerOverlay with multiple tiles; when the style of one layer is changed, call Refresh to refresh all the tiles to accept new styles.

Remarks

The difference from Draw() method is that Refresh() method refreshs all the elements while Draw() does not.

Return Value

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

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

ToString()

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

CloseCore()

This protected virtual method is the Core method of Close API.

Return Value

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

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Dispose(Boolean)

Releases unmanaged and - optionally - managed resources.

Return Value

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

Parameters

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

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay(overriden) –> Go Back

DrawCore(MapArguments, OverlayRefreshType)

This method creates markers in the provided world extent and places on the overlay.

Return Value

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

Parameters

Name Type Description
mapArguments MapArguments<!– ThinkGeo.MapSuite.AndroidEdition.MapArguments –> This parameter maintains current map information for calculating mechanism.
refreshType OverlayRefreshType<!– ThinkGeo.MapSuite.AndroidEdition.OverlayRefreshType –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay(overriden) –> Go Back

DrawException(GeoCanvas, Exception)

This method will draw on the canvas when the layer.Draw throw exception and the DrawExceptionMode is set to DrawException instead of ThrowException.

Remarks

This method can be overriden its logic by rewrite the DrawExceptionCore.

Return Value

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

Parameters

Name Type Description
geoCanvas GeoCanvas<!– ThinkGeo.MapSuite.Core.GeoCanvas –>
exception Exception<!– System.Exception –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

DrawExceptionCore(GeoCanvas, Exception)

This method will draw on the canvas when the layer.Draw throw exception and the DrawExceptionMode is set to DrawException instead of ThrowException.

Return Value

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

Parameters

Name Type Description
geoCanvas GeoCanvas<!– ThinkGeo.MapSuite.Core.GeoCanvas –>
ex Exception<!– System.Exception –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Finalize()

Return Value

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

Parameters

Name Type Description

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

GetBoundingBoxCore()

This method returns the bounding box of the Overlay.

Remarks

This method returns the bounding box of the Overlay.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This method returns the bounding box of the Overlay.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

InitializeCore(MapArguments)

This method initializes overlay object.

Remarks

When implementing this method, consider initializing the overlay canvas such as setting its z-index, setting current map reference to the CurrentMap property.

Return Value

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

Parameters

Name Type Description
mapArgument MapArguments<!– ThinkGeo.MapSuite.AndroidEdition.MapArguments –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

MemberwiseClone()

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

OnDrawingException(DrawingExceptionOverlayEventArgs)

This method raises before the overlay is drawing exception.

Return Value

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

Parameters

Name Type Description
args DrawingExceptionOverlayEventArgs<!– ThinkGeo.MapSuite.AndroidEdition.DrawingExceptionOverlayEventArgs –> This parameter is the event argument for DrawingException event.

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

OnDrawnException(DrawnExceptionOverlayEventArgs)

This method raises after the overlay is drawn exception.

Return Value

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

Parameters

Name Type Description
args DrawnExceptionOverlayEventArgs<!– ThinkGeo.MapSuite.AndroidEdition.DrawnExceptionOverlayEventArgs –> This parameter is the event argument for DrawingException event.

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

OpenCore()

This protected virtual method is the Core method of Open API.

Return Value

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

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

PostTransformCore(TransformArguments, MapArguments)

This protected virtual method is the Core method of PostTransform API.

Return Value

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

Parameters

Name Type Description
transformInfo TransformArguments<!– ThinkGeo.MapSuite.AndroidEdition.TransformArguments –> This parameter maintains the transfrom information for calculating transform.
mapArguments MapArguments<!– ThinkGeo.MapSuite.AndroidEdition.MapArguments –> This parameter maintains current map information for calculating mechanism.

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay(overriden) –> Go Back

RefreshCore()

This method refreshes all the content in the OverlayCanvas. For example, LayerOverlay with multiple tiles; when the style of one layer is changed, call Refresh to refresh all the tiles to accept new styles.

Remarks

The difference from Draw() method is that Refresh() method refreshs all the elements while Draw() does not.

Return Value

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

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Public Properties

Attribution

Gets or sets the attribution for this overlay.

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

DrawingExceptionMode

This property gets and sets the DrawingExceptionMode used when an exception occurs during drawing.

Return Value

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

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

DrawingQuality

Gets or sets the drawingQuality for this overlay.

Return Value

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

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

IsEmpty

This property gets if this overlay is empty or not.

Remarks

This property enhances the performance of the overlay while drawing. If is true, we will skip drawing this overlay and continue drawing the next overlay.

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

IsVisible

Gets or sets if this overlay is visible.

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

MapArguments

Gets or sets the mapArguments for this overlay.

Return Value

Return Type
MapArguments<!– ThinkGeo.MapSuite.AndroidEdition.MapArguments –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Markers

A collection that holds all the marker objects adding in the overlay.

Return Value

Return Type
GeoCollection<Marker><!– ThinkGeo.MapSuite.Core.GeoCollection{ThinkGeo.MapSuite.AndroidEdition.Marker} –>

<!– ThinkGeo.MapSuite.AndroidEdition.MarkerOverlay –> Go Back

Name

Gets or sets the name of this overaly.

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Opacity

Gets or sets the opacity for this overlay.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

Protected Properties

Public Events

DrawingException

Occurs before exception is drawing on map.

Event Arguments

Event Arguments
DrawingExceptionOverlayEventArgs<!– ThinkGeo.MapSuite.AndroidEdition.DrawingExceptionOverlayEventArgs –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

DrawnException

Occurs after exception is drawn on map.

Event Arguments

Event Arguments
DrawnExceptionOverlayEventArgs<!– ThinkGeo.MapSuite.AndroidEdition.DrawnExceptionOverlayEventArgs –>

<!– ThinkGeo.MapSuite.AndroidEdition.Overlay –> Go Back

NOTOC AndroidEdition ThinkGeo.MapSuite.AndroidEdition UpdateDocumentation

thinkgeo.mapsuite.androidedition.markeroverlay.1440040127.txt.gz · Last modified: 2015/09/21 10:31 (external edit)