User Tools

Site Tools


thinkgeo.mapsuite.wpfdesktopedition.simplemarkeroverlay

ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay

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.

Represents a MarkerOverlay object to which you can add markers directly.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.WpfDesktopEdition.Overlay
      • ThinkGeo.MapSuite.WpfDesktopEdition.MarkerOverlay
        • ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay

Members Summary

Public Constructors

SimpleMarkerOverlay()

  • Constructor of SimpleMarkerOverlay class.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#SimpleMarkerOverlay.28.29
Parameters

SimpleMarkerOverlay(IEnumerable<Marker>)

  • Constructor of SimpleMarkerOver
Remarks
  • For the most updated Info for this topic, please check it here:
Parameters
  • markers
    • Type:IEnumerable<Marker>
    • Description:N/A

Protected Constructors

Public Methods

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
Parameters
  • boundingBox
    • Description:This parameter is the extent in world coordinate for requesting markers.

Refresh(IEnumerable<RectangleShape>)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:
Return Value
  • Type:Void
  • Description:N/A
Parameters

Refresh(TimeSpan)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Refresh.28TimeSpan.29
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Refresh(TimeSpan,RequestDrawingBufferTimeType)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Refresh(RectangleShape,TimeSpan)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Refresh.28RectangleShape.2C_TimeSpan.29
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Refresh(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Refresh(IEnumerable<RectangleShape>,TimeSpan)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Refresh(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Initialize(MapArguments)

  • This method initializes overlay object.
Remarks
  • This is a wrapper method for the virtual method InitializeCore.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • mapArguments
    • Description:This parameter maintains current map information for calculating mechanism.

Refresh(RectangleShape)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Refresh.28RectangleShape.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

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
  • Type:Void
  • Description:N/A
Parameters

Close()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Close.28.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

Open()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Open.28.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

Draw(RectangleShape)

  • This method draws the overlay with the provided extent in world coordinate.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Draw.28RectangleShape.29
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • targetExtent
    • Description:This parameter indicates an extent in world coordinate for drawing the overlay.

Draw(RectangleShape,OverlayRefreshType)

  • This method draws the overlay with the provided extent in world coordinate.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Draw.28RectangleShape.2C_OverlayRefreshType.29
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • targetExtent
    • Description:This parameter indicates an extent in world coordinate for drawing the overlay.
  • refreshType
    • Description: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.

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
  • Type:Void
  • Description:N/A
Parameters
  • targetExtent
    • Description:This parameter is the target world extent for panning.

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
  • Description:A RectangleShape indicating the bounding box of this overlay
Parameters

SaveState()

  • This method saves overlay state to a byte array.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#SaveState.28.29
Return Value
  • Type:Byte[]
  • Description:A byte array indicates current overlay state.
Parameters

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:
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • state
    • Type:Byte[]
    • Description:This parameter indicates the state for restore the overlay.

Dispose()

  • This method dispose unmanaged resource used in this class.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Dispose.28.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

ToString()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#ToString.28.29
Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Equals.28Object.29
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#GetHashCode.28.29
Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#GetType.28.29
Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

GetMarkersForDrawingCore(RectangleShape)

  • Gets all the markers that are containing in the provided world extent.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#GetMarkersForDrawingCore.28RectangleShape.29
Return Value
Parameters
  • boundingBox

DrawCore(RectangleShape,OverlayRefreshType)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#DrawCore.28RectangleShape.2C_OverlayRefreshType.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

OnMarkerDragging(MarkerDraggingSimpleMarkerOverlayEventArgs)

  • This method raises before the marker is dragging.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#OnMarkerDragging.28MarkerDraggingSimpleMarkerOverlayEventArgs.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

OnMarkerDragged(MarkerDraggedSimpleMarkerOverlayEventArgs)

  • This method raises after the marker is dragged.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#OnMarkerDragged.28MarkerDraggedSimpleMarkerOverlayEventArgs.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

GetBoundingBoxCore()

  • This method gets a bounding box that maintains all the markers which are added in this overlay.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#GetBoundingBoxCore.28.29
Return Value
  • Description:Returns a RectangleShape that maintains all the markers which are added in this overlay.
Parameters

SaveStateCore()

  • This method saves simple marker overlay state to a byte array.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#SaveStateCore.28.29
Return Value
  • Type:Byte[]
  • Description:A byte array indicates current overlay state.
Parameters

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:
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • state
    • Type:Byte[]
    • Description:This parameter indicates the state for restore the overlay.

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
  • Type:Void
  • Description:N/A
Parameters
  • mapArguments
    • Description:This parameter maintains current map information for calculating mechanism.

RefreshCore(RectangleShape)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#RefreshCore.28RectangleShape.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

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
  • Type:Void
  • Description:N/A
Parameters

CloseCore()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#CloseCore.28.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

OpenCore()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#OpenCore.28.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

4hM=(GeoCanvas)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

DrawAttributionCore(GeoCanvas)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#DrawAttributionCore.28GeoCanvas.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

OnDrawingAttribution(DrawingAttributionOverlayEventArgs)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#OnDrawingAttribution.28DrawingAttributionOverlayEventArgs.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

OnDrawnAttribution(DrawnAttributionOverlayEventArgs)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#OnDrawnAttribution.28DrawnAttributionOverlayEventArgs.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

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
  • Type:Void
  • Description:N/A
Parameters
  • targetExtent
    • Description:This parameter is the target world extent for panning.

OnDrawing(DrawingOverlayEventArgs)

  • This method raises before the overlay is drawing.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#OnDrawing.28DrawingOverlayEventArgs.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

OnDrawn(DrawnOverlayEventArgs)

  • This method raises after the overlay is drawn.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#OnDrawn.28DrawnOverlayEventArgs.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

Finalize()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Finalize.28.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

Dispose(Boolean)

  • This method dispose unmanaged resource used in this class.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Dispose.28Boolean.29
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • disposing
    • Type:Boolean
    • Description:N/A

OnRefreshing(OverlayRefreshType)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#MemberwiseClone.28.29
Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

DragMode

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

Remarks

For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#DragMode

Return Value

Markers

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

Remarks
Return Value
Remarks
Return Value
  • Type:TimeSpan

Name

Gets or sets the name of this overaly.

Remarks

For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#Name

Return Value
  • Type:String

MapArguments

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

Remarks
Return Value

OverlayCanvas

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

Remarks
Return Value
  • Type:Canvas

IsBase

N/A

Remarks

For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#IsBase

Return Value
  • Type:Boolean

CanRefreshRegion

N/A

Remarks
Return Value
  • Type:Boolean

DrawingExceptionMode

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

Remarks
Return Value

IsVisible

Gets or sets if this overlay is visible.

Remarks

For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#IsVisible

Return Value
  • Type:Boolean

Attribution

N/A

Remarks
Return Value
  • Type:String

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
  • Type:Boolean

Protected Properties

PreviousExtent

Gets or sets the previous exent of the overlay.

Remarks
Return Value

3BM=

N/A

Remarks

N/A

Return Value
  • Type:Double

IsOverlayInitialized

Gets or sets if the overlay canvas is initialized.

Remarks
Return Value
  • Type:Boolean

Public Events

MarkerDragging This is an event raises before the marker is dragging.

Remarks

For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#OnMarkerDragging.28MarkerDraggingSimpleMarkerOverlayEventArgs.29

Event Arguments:MarkerDraggingSimpleMarkerOverlayEventArgs

MarkerDragged This is an event raises after the marker is dragged.

Remarks

For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#OnMarkerDragged.28MarkerDraggedSimpleMarkerOverlayEventArgs.29

Event Arguments:MarkerDraggedSimpleMarkerOverlayEventArgs

Drawing This event raises before the overlay is drawing.

Remarks

For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#GetMarkersForDrawing.28RectangleShape.29

Event Arguments:DrawingOverlayEventArgs

Drawn This event raises after the overlay is drawn.

Remarks

For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.SimpleMarkerOverlay#OnDrawn.28DrawnOverlayEventArgs.29

Event Arguments:DrawnOverlayEventArgs

DrawingAttribution N/A

Remarks
Remarks
thinkgeo.mapsuite.wpfdesktopedition.simplemarkeroverlay.txt · Last modified: 2017/03/16 21:59 (external edit)