User Tools

Site Tools


thinkgeo.mapsuite.wpfdesktopedition.simplemarkeroverlay

This is an old revision of the document!


Table of Contents

ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay

<!– Class –> Represents a MarkerOverlay object to which you can add markers directly.

Remarks

The &lt;strong&gt;SimpleMarkerOverlay&lt;/strong&gt; class has a &lt;strong&gt;Markers&lt;/strong&gt; collection to which you can add markers directly. All of these markers will be placed on the map loading. You can also specify whether the markers can be dragged by setting the &lt;strong&gt;DragMode&lt;/strong&gt; property.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodSimpleMarkerOverlay Constructor of SimpleMarkerOverlay class.
Public MethodSimpleMarkerOverlay IEnumerable<Marker> Constructor of SimpleMarkerOver

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodClose Overlay
Public MethodDispose Overlay This method dispose unmanaged resource used in this class.
Public MethodDraw RectangleShape, OverlayRefreshType Overlay This method draws the overlay with the provided extent in world coordinate.
Public MethodDraw RectangleShape 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 MethodGetMarkersForDrawing RectangleShape MarkerOverlay This method gets a marker collection for drawing on the overlay.
Public MethodGetType Object
Public MethodInitialize MapArguments Overlay This method initializes overlay object.
Public MethodLoadState Byte[] Overlay This method restore the overlay state back from the specified state.
Public MethodOpen Overlay
Public MethodPanTo RectangleShape Overlay This method pans the overlay to the provided world extent.
Public MethodRefresh RectangleShape, TimeSpan, RequestDrawingBufferTimeType Overlay
Public MethodRefresh RectangleShape Overlay
Public MethodRefresh IEnumerable<RectangleShape> Overlay
Public MethodRefresh TimeSpan Overlay
Public MethodRefresh IEnumerable<RectangleShape>, TimeSpan, RequestDrawingBufferTimeType Overlay
Public MethodRefresh TimeSpan, RequestDrawingBufferTimeType Overlay
Public MethodRefresh RectangleShape, TimeSpan Overlay
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 MethodRefresh IEnumerable<RectangleShape>, TimeSpan Overlay
Public MethodSaveState Overlay This method saves overlay state to a byte array.
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodCloseCore Overlay
Protected MethodDispose Boolean Overlay This method dispose unmanaged resource used in this class.
Protected MethodDrawAttributionCore GeoCanvas Overlay
Protected MethodDrawCore RectangleShape, OverlayRefreshType Overlay(overriden)
Protected MethodFinalize Object(overriden)
Protected MethodGetBoundingBoxCore Overlay(overriden) This method gets a bounding box that maintains all the markers which are added in this overlay.
Protected MethodGetMarkersForDrawingCore RectangleShape MarkerOverlay(overriden) Gets all the markers that are containing in the provided world extent.
Protected MethodInitializeCore MapArguments Overlay This method initializes overlay object.
Protected MethodLoadStateCore Byte[] Overlay(overriden) This method restore the simple marker overlay state back from the specified state.
Protected MethodMemberwiseClone Object
Protected MethodOnDrawing DrawingOverlayEventArgs Overlay This method raises before the overlay is drawing.
Protected MethodOnDrawingAttribution DrawingAttributionOverlayEventArgs Overlay
Protected MethodOnDrawn DrawnOverlayEventArgs Overlay This method raises after the overlay is drawn.
Protected MethodOnDrawnAttribution DrawnAttributionOverlayEventArgs Overlay
Protected MethodOnMarkerDragged MarkerDraggedSimpleMarkerOverlayEventArgs This method raises after the marker is dragged.
Protected MethodOnMarkerDragging MarkerDraggingSimpleMarkerOverlayEventArgs This method raises before the marker is dragging.
Protected MethodOpenCore Overlay
Protected MethodPanToCore RectangleShape Overlay This method pans the overlay to the provided world extent.
Protected MethodRefreshCore RectangleShape Overlay
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.
Protected MethodSaveStateCore Overlay(overriden) This method saves simple marker overlay state to a byte array.

Public Properties

Name Return DeclaringType Summary
Public PropertyAttribution String Overlay
Public PropertyAutoRefreshInterval TimeSpan Overlay
Public PropertyCanRefreshRegion Boolean Overlay
Public PropertyDragMode MarkerDragMode Gets a value that specifies how the markers can be dragged.
Public PropertyDrawingExceptionMode DrawingExceptionMode Overlay This property gets and sets the DrawingExceptionMode used when an exception occurs during drawing.
Public PropertyIsBase Boolean 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 current map information which will be used for calculating mechanism.
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 PropertyOverlayCanvas Canvas Overlay Gets or sets the actual canvas which maintains all the visual elements on the overlay.

Protected Properties

Name Return DeclaringType Summary
Protected PropertyIsOverlayInitialized Boolean Overlay Gets or sets if the overlay canvas is initialized.
Protected PropertyPreviousExtent RectangleShape Overlay Gets or sets the previous exent of the overlay.

Public Events

Name Event Arguments DeclaringType Summary
Public EventDrawing DrawingOverlayEventArgs Overlay This event raises before the overlay is drawing.
Public EventDrawingAttribution DrawingAttributionOverlayEventArgs Overlay
Public EventDrawn DrawnOverlayEventArgs Overlay This event raises after the overlay is drawn.
Public EventDrawnAttribution DrawnAttributionOverlayEventArgs Overlay
Public EventMarkerDragged MarkerDraggedSimpleMarkerOverlayEventArgs This is an event raises after the marker is dragged.
Public EventMarkerDragging MarkerDraggingSimpleMarkerOverlayEventArgs This is an event raises before the marker is dragging.

Public Constructors

SimpleMarkerOverlay()

Constructor of SimpleMarkerOverlay class.

Remarks

Parameters

Name Type Description

Go Back

SimpleMarkerOverlay(IEnumerable<Marker>)

Constructor of SimpleMarkerOver

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Parameters

Name Type Description
markers IEnumerable<Marker><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.WpfDesktopEdition.Marker} –>

Go Back

Protected Constructors

Public Methods

Close()

Remarks

Return Value

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

Parameters

Name Type Description

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

Dispose()

This method dispose unmanaged resource used in this class.

Remarks

Return Value

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

Parameters

Name Type Description

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

Draw(RectangleShape, OverlayRefreshType)

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

Remarks

Return Value

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

Parameters

Name Type Description
targetExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter indicates an extent in world coordinate for drawing the overlay.
refreshType OverlayRefreshType<!– ThinkGeo.MapSuite.WpfDesktopEdition.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.WpfDesktopEdition.Overlay –> Go Back

Draw(RectangleShape)

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

Remarks

Return Value

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

Parameters

Name Type Description
targetExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter indicates an extent in world coordinate for drawing the overlay.

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

Equals(Object)

Remarks

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.WpfDesktopEdition.Overlay –> Go Back

GetHashCode()

Remarks

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

GetMarkersForDrawing(RectangleShape)

This method gets a marker collection for drawing on the overlay.

Remarks

This is a wrapper method for the abstract method GetDrawingMarkersCore.

Return Value

Return Type Description
GeoCollection<Marker><!– ThinkGeo.MapSuite.Core.GeoCollection{ThinkGeo.MapSuite.WpfDesktopEdition.Marker} –> An marker collection for drawing.

Parameters

Name Type Description
boundingBox RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter is the extent in world coordinate for requesting markers.

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

GetType()

Remarks

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.WpfDesktopEdition.MapArguments –> This parameter maintains current map information for calculating mechanism.

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

LoadState(Byte[])

This method restore the overlay state back from the specified state.

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

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

Parameters

Name Type Description
state Byte[]<!– System.Bytethinkgeo.mapsuite.wpfdesktopedition.simplemarkeroverlay –> This parameter indicates the state for restore the overlay.

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

Open()

Remarks

Return Value

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

Parameters

Name Type Description

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

PanTo(RectangleShape)

This method pans the overlay to the provided world extent.

Remarks

Some overlay doesn't need to continously drawing all the tile. For example, MarkerOverlay is formed by markers. When mouse down to pan, the markers don't need to redraw, we can only change its position. When mouse up to end panning, we can redraw the overlay for better performance.

Return Value

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

Parameters

Name Type Description
targetExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter is the target world extent for panning.

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

Refresh(RectangleShape, TimeSpan, RequestDrawingBufferTimeType)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

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

Parameters

Name Type Description
extentToRefresh RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>
bufferTime TimeSpan<!– System.TimeSpan –>
bufferTimeType RequestDrawingBufferTimeType<!– ThinkGeo.MapSuite.Core.RequestDrawingBufferTimeType –>

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

Refresh(RectangleShape)

Remarks

Return Value

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

Parameters

Name Type Description
extent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

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

Refresh(IEnumerable<RectangleShape>)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

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

Parameters

Name Type Description
extentsToRefresh IEnumerable<RectangleShape><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.Core.RectangleShape} –>

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

Refresh(TimeSpan)

Remarks

Return Value

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

Parameters

Name Type Description
bufferTime TimeSpan<!– System.TimeSpan –>

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

Refresh(IEnumerable<RectangleShape>, TimeSpan, RequestDrawingBufferTimeType)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

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

Parameters

Name Type Description
extentsToRefresh IEnumerable<RectangleShape><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.Core.RectangleShape} –>
bufferTime TimeSpan<!– System.TimeSpan –>
bufferTimeType RequestDrawingBufferTimeType<!– ThinkGeo.MapSuite.Core.RequestDrawingBufferTimeType –>

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

Refresh(TimeSpan, RequestDrawingBufferTimeType)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

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

Parameters

Name Type Description
bufferTime TimeSpan<!– System.TimeSpan –>
bufferTimeType RequestDrawingBufferTimeType<!– ThinkGeo.MapSuite.Core.RequestDrawingBufferTimeType –>

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

Refresh(RectangleShape, TimeSpan)

Remarks

Return Value

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

Parameters

Name Type Description
extentToRefresh RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>
bufferTime TimeSpan<!– System.TimeSpan –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.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.WpfDesktopEdition.Overlay –> Go Back

Refresh(IEnumerable<RectangleShape>, TimeSpan)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

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

Parameters

Name Type Description
extentsToRefresh IEnumerable<RectangleShape><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.Core.RectangleShape} –>
bufferTime TimeSpan<!– System.TimeSpan –>

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

SaveState()

This method saves overlay state to a byte array.

Remarks

Return Value

Return Type Description
Byte[]<!– System.Bytethinkgeo.mapsuite.wpfdesktopedition.simplemarkeroverlay –> A byte array indicates current overlay state.

Parameters

Name Type Description

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

ToString()

Remarks

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

CloseCore()

Remarks

Return Value

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

Parameters

Name Type Description

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

Dispose(Boolean)

This method dispose unmanaged resource used in this class.

Remarks

Return Value

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

Parameters

Name Type Description
disposing Boolean<!– System.Boolean –>

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

DrawAttributionCore(GeoCanvas)

Remarks

Return Value

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

Parameters

Name Type Description
canvas GeoCanvas<!– ThinkGeo.MapSuite.Core.GeoCanvas –>

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

DrawCore(RectangleShape, OverlayRefreshType)

Remarks

Return Value

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

Parameters

Name Type Description
targetExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>
overlayRefreshType OverlayRefreshType<!– ThinkGeo.MapSuite.WpfDesktopEdition.OverlayRefreshType –>

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

Finalize()

Remarks

Return Value

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

Parameters

Name Type Description

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

GetBoundingBoxCore()

This method gets a bounding box that maintains all the markers which are added in this overlay.

Remarks

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> Returns a RectangleShape that maintains all the markers which are added in this overlay.

Parameters

Name Type Description

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

GetMarkersForDrawingCore(RectangleShape)

Gets all the markers that are containing in the provided world extent.

Remarks

Return Value

Return Type Description
GeoCollection<Marker><!– ThinkGeo.MapSuite.Core.GeoCollection{ThinkGeo.MapSuite.WpfDesktopEdition.Marker} –> A collection of marker objects that are in the provided world extent.

Parameters

Name Type Description
boundingBox RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> A world extent of current viewport.

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MarkerOverlay(overriden) –> 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
mapArguments MapArguments<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> This parameter maintains current map information for calculating mechanism.

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

LoadStateCore(Byte[])

This method restore the simple marker overlay state back from the specified state.

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

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

Parameters

Name Type Description
state Byte[]<!– System.Bytethinkgeo.mapsuite.wpfdesktopedition.simplemarkeroverlay –> This parameter indicates the state for restore the overlay.

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

MemberwiseClone()

Remarks

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

OnDrawing(DrawingOverlayEventArgs)

This method raises before the overlay is drawing.

Remarks

Return Value

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

Parameters

Name Type Description
e DrawingOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.DrawingOverlayEventArgs –> This parameter is the event argument for Drawing event.

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

OnDrawingAttribution(DrawingAttributionOverlayEventArgs)

Remarks

Return Value

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

Parameters

Name Type Description
args DrawingAttributionOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.DrawingAttributionOverlayEventArgs –>

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

OnDrawn(DrawnOverlayEventArgs)

This method raises after the overlay is drawn.

Remarks

Return Value

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

Parameters

Name Type Description
e DrawnOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.DrawnOverlayEventArgs –> This parameter is the event argument for Drawn event.

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

OnDrawnAttribution(DrawnAttributionOverlayEventArgs)

Remarks

Return Value

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

Parameters

Name Type Description
args DrawnAttributionOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.DrawnAttributionOverlayEventArgs –>

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

OnMarkerDragged(MarkerDraggedSimpleMarkerOverlayEventArgs)

This method raises after the marker is dragged.

Remarks

Return Value

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

Parameters

Name Type Description
args MarkerDraggedSimpleMarkerOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.MarkerDraggedSimpleMarkerOverlayEventArgs –> This parameter is the event args for the MarkerDragged event.

<!– ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay –> Go Back

OnMarkerDragging(MarkerDraggingSimpleMarkerOverlayEventArgs)

This method raises before the marker is dragging.

Remarks

Return Value

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

Parameters

Name Type Description
args MarkerDraggingSimpleMarkerOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.MarkerDraggingSimpleMarkerOverlayEventArgs –> This parameter is the event args for the MarkerDragging event.

<!– ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay –> Go Back

OpenCore()

Remarks

Return Value

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

Parameters

Name Type Description

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

PanToCore(RectangleShape)

This method pans the overlay to the provided world extent.

Remarks

Some overlay doesn't need to continously drawing all the tile. For example, MarkerOverlay is formed by markers. When mouse down to pan, the markers don't need to redraw, we can only change its position. When mouse up to end panning, we can redraw the overlay for better performance.

Return Value

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

Parameters

Name Type Description
targetExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter is the target world extent for panning.

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

RefreshCore(RectangleShape)

Remarks

Return Value

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

Parameters

Name Type Description
extent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.Overlay –> 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.WpfDesktopEdition.Overlay –> Go Back

SaveStateCore()

This method saves simple marker overlay state to a byte array.

Remarks

Return Value

Return Type Description
Byte[]<!– System.Bytethinkgeo.mapsuite.wpfdesktopedition.simplemarkeroverlay –> A byte array indicates current overlay state.

Parameters

Name Type Description

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

Public Properties

Attribution

Remarks

Return Value

Return Type
String<!– System.String –>

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

AutoRefreshInterval

Remarks

Return Value

Return Type
TimeSpan<!– System.TimeSpan –>

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

CanRefreshRegion

Remarks

Return Value

Return Type
Boolean<!– System.Boolean –>

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

DragMode

Gets a value that specifies how the markers can be dragged.

Remarks

Return Value

Return Type
MarkerDragMode<!– ThinkGeo.MapSuite.WpfDesktopEdition.MarkerDragMode –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay –> Go Back

DrawingExceptionMode

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

Remarks

Return Value

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

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

IsBase

Remarks

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.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.WpfDesktopEdition.Overlay –> Go Back

IsVisible

Gets or sets if this overlay is visible.

Remarks

Return Value

Return Type
Boolean<!– System.Boolean –>

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

MapArguments

Gets or sets current map information which will be used for calculating mechanism.

Remarks

Return Value

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

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

Markers

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

Remarks

Return Value

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

<!– ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay –> Go Back

Name

Gets or sets the name of this overaly.

Remarks

Return Value

Return Type
String<!– System.String –>

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

OverlayCanvas

Gets or sets the actual canvas which maintains all the visual elements on the overlay.

Remarks

Return Value

Return Type
Canvas<!– System.Windows.Controls.Canvas –>

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

Protected Properties

IsOverlayInitialized

Gets or sets if the overlay canvas is initialized.

Remarks

Return Value

Return Type
Boolean<!– System.Boolean –>

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

PreviousExtent

Gets or sets the previous exent of the overlay.

Remarks

Return Value

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

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

Public Events

Drawing

This event raises before the overlay is drawing.

Remarks

Event Arguments

Event Arguments
DrawingOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.DrawingOverlayEventArgs –>

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

DrawingAttribution

Remarks

Event Arguments

Event Arguments
DrawingAttributionOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.DrawingAttributionOverlayEventArgs –>

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

Drawn

This event raises after the overlay is drawn.

Remarks

Event Arguments

Event Arguments
DrawnOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.DrawnOverlayEventArgs –>

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

DrawnAttribution

Remarks

Event Arguments

Event Arguments
DrawnAttributionOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.DrawnAttributionOverlayEventArgs –>

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

MarkerDragged

This is an event raises after the marker is dragged.

Remarks

Event Arguments

Event Arguments
MarkerDraggedSimpleMarkerOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.MarkerDraggedSimpleMarkerOverlayEventArgs –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay –> Go Back

MarkerDragging

This is an event raises before the marker is dragging.

Remarks

Event Arguments

Event Arguments
MarkerDraggingSimpleMarkerOverlayEventArgs<!– ThinkGeo.MapSuite.WpfDesktopEdition.MarkerDraggingSimpleMarkerOverlayEventArgs –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay –> Go Back

NOTOC WpfDesktopEdition ThinkGeo.MapSuite.WpfDesktopEdition UpdateDocumentation

thinkgeo.mapsuite.wpfdesktopedition.simplemarkeroverlay.1440040136.txt.gz · Last modified: 2015/09/22 08:56 (external edit)