User Tools

Site Tools


thinkgeo.mapsuite.wpfdesktopedition.tileoverlay

This is an old revision of the document!


ThinkGeo.MapSuite.WpfDesktopEdition.TileOverlay

Represents an overlay that maintains tiles.

Inheritance Hierarchy

Members Summary

Public Constructors

Protected Constructors

TileOverlay()

Constructor of TileOverlay class.

Remarks

N/A

Parameters

Public Methods

Refresh(IEnumerable<RectangleShape>)

N/A

Remarks

N/A

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

Refresh(TimeSpan)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Refresh(TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Refresh(RectangleShape,TimeSpan)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Refresh(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Refresh(IEnumerable<RectangleShape>,TimeSpan)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Refresh(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bufferTime
    • Type:TimeSpan
    • Description:N/A

Initialize(MapArguments)

N/A

Remarks

N/A

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

Refresh(RectangleShape)

N/A

Remarks

N/A

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

Refresh()

N/A

Remarks

N/A

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

Close()

N/A

Remarks

N/A

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

Open()

N/A

Remarks

N/A

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

Draw(RectangleShape)

N/A

Remarks

N/A

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

Draw(RectangleShape,OverlayRefreshType)

N/A

Remarks

N/A

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

PanTo(RectangleShape)

N/A

Remarks

N/A

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

GetBoundingBox()

N/A

Remarks

N/A

Return Value
Parameters

SaveState()

N/A

Remarks

N/A

Return Value
  • Type:Byte[]
  • Description:N/A
Parameters

LoadState(Byte[])

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • state
    • Type:Byte[]
    • Description:N/A

Dispose()

N/A

Remarks

N/A

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

ToString()

N/A

Remarks

N/A

Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

N/A

Remarks

N/A

Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

N/A

Remarks

N/A

Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

N/A

Remarks

N/A

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

Protected Methods

GBQ=(RectangleShape)

N/A

Remarks

N/A

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

HBQ=(QhY=)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • clearTilesMode
    • Type:QhY=
    • Description:N/A

DrawCore(RectangleShape,OverlayRefreshType)

Draws current overlay with provided world extent.

Remarks

N/A

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

PrefillDataToTiles(IEnumerable<Tile>)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tiles
    • Type:IEnumerable<Tile>
    • Description:N/A

PrefillDataToTilesCore(IEnumerable<Tile>)

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tiles
    • Type:IEnumerable<Tile>
    • Description:N/A

RefreshCore()

Refreshes tiles on the overlay. When calling this mehtod, all the tiles including map tiles and stretched tiles will be cleared. And reform with new tiles.

Remarks

N/A

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

OnDrawTilesProgressChanged(DrawTilesProgressChangedTileOverlayEventArgs)

Occurs when Tiles' download progress is changed.

Remarks

N/A

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

OnDrawingTile(DrawingTileTileOverlayEventArgs)

This method raises before a tile is drawing.

Remarks

N/A

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

OnDrawnTile(DrawnTileTileOverlayEventArgs)

This method raises after a tile is drawn.

Remarks

N/A

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

GetTileCore()

Chooses a tile object to form the TileOverlay. When overriding this method, consider the initialize parameters setting on the tile.

Remarks

N/A

Return Value
  • Type:Tile
  • Description:A tile object to form the TileOverlay.
Parameters

SaveStateCore()

This method saves overlay state to a byte array.

Remarks

N/A

Return Value
  • Type:Byte[]
  • Description:A byte array indicates current overlay state.
Parameters

LoadStateCore(Byte[])

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

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • state
    • Type:Byte[]
    • Description:This parameter indicates the state for restore the overlay.

DrawTile(Tile,RectangleShape)

Redraws a specified tile with the provided world extent.

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:A Tile object that is created by the GetTile() method to draw.
  • targetExtent
    • Description:A world extent for drawing the passed tile.

DrawTileCore(Tile,RectangleShape)

Redraws a specified tile with the provided world extent.

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:A Tile object that is created by the GetTile() method to draw.
  • targetExtent
    • Description:A world extent for drawing the passed tile.

Dispose(Boolean)

This method disposes unmanaged resources used in this class.

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • disposing
    • Type:Boolean
    • Description:N/A

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.

GetDrawingCells(RectangleShape)

This method gets the cells for drawing in the passed world extent.

Remarks

N/A

Return Value
  • Type:Dictionary<String,TileMatrixCell>
  • Description:A dictionary of cells for drawing in the passed world extent.
Parameters
  • targetExtent
    • Description:A world extent for getting the drawing cells.

GetDrawingCellsCore(RectangleShape)

This method gets the cells for drawing in the passed world extent.

Remarks

When overriding this method, consider that the TileBuffer affects the passed world extent.

Return Value
  • Type:Dictionary<String,TileMatrixCell>
  • Description:A dictionary of cells for drawing in the passed world extent.
Parameters
  • targetExtent
    • Description:A world extent for getting the drawing cells.

GetTileMatrix(Double,Int32,Int32,GeographyUnit)

N/A

Remarks

N/A

Return Value
Parameters
  • scale
    • Type:Double
    • Description:N/A
  • tileWidth
    • Type:Int32
    • Description:N/A
  • tileHeight
    • Type:Int32
    • Description:N/A

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
  • Type:Void
  • Description:N/A
Parameters
  • canvas
    • Type:GeoCanvas
    • Description:The target canvas to draw the layer.
  • e
    • Type:Exception
    • Description:The exception thrown when layer.Draw().

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.

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • canvas
    • Type:GeoCanvas
    • Description:The target canvas to draw the layer.
  • e
    • Type:Exception
    • Description:The exception thrown when layer.Draw().

OnDrawingException(DrawingExceptionTileOverlayEventArgs)

N/A

Remarks

N/A

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

OnDrawnException(DrawnExceptionTileOverlayEventArgs)

N/A

Remarks

N/A

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

OnStartingThread(StartingThreadTileOverlayEventArgs)

N/A

Remarks

N/A

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

OnTileTypeChanged(TileTypeChangedTileOverlayEventArgs)

N/A

Remarks

N/A

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

IhQ=(RectangleShape,Double)

N/A

Remarks

N/A

Return Value
Parameters
  • resolution
    • Type:Double
    • Description:N/A

IxQ=(RectangleShape,Double,Double,Int64,Int64,Int32)

N/A

Remarks

N/A

Return Value
  • Type:Tile
  • Description:N/A
Parameters
  • tileScreenWidth
    • Type:Double
    • Description:N/A
  • tileScreenHeight
    • Type:Double
    • Description:N/A
  • tileColumnIndex
    • Type:Int64
    • Description:N/A
  • tileRowIndex
    • Type:Int64
    • Description:N/A
  • zoomLevelIndex
    • Type:Int32
    • Description:N/A

DrawStretchTiles(RectangleShape)

N/A

Remarks

N/A

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

GetSortedCells(Dictionary<String,TileMatrixCell>,RectangleShape)

N/A

Remarks

N/A

Return Value
Parameters

GetSortedCellsCore(Dictionary<String,TileMatrixCell>,RectangleShape)

N/A

Remarks

N/A

Return Value
Parameters

4BM=(IEnumerable<RectangleShape>)

N/A

Remarks

N/A

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

RefreshCore(RectangleShape)

N/A

Remarks

N/A

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

CloseCore()

N/A

Remarks

N/A

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

OpenCore()

N/A

Remarks

N/A

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

N/A

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

OnDrawingAttribution(DrawingAttributionOverlayEventArgs)

N/A

Remarks

N/A

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

OnDrawnAttribution(DrawnAttributionOverlayEventArgs)

N/A

Remarks

N/A

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

PanToCore(RectangleShape)

N/A

Remarks

N/A

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

OnDrawing(DrawingOverlayEventArgs)

N/A

Remarks

N/A

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

OnDrawn(DrawnOverlayEventArgs)

N/A

Remarks

N/A

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

GetBoundingBoxCore()

N/A

Remarks

N/A

Return Value
Parameters

Finalize()

N/A

Remarks

N/A

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

OnRefreshing(OverlayRefreshType)

N/A

Remarks

N/A

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

MemberwiseClone()

N/A

Remarks

N/A

Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

IsVisible

N/A

Remarks

N/A

Return Value
  • Type:Boolean

TileType

Gets and sets the overlay is formed by multiple tiles or single tile.

Remarks

N/A

Return Value

TileWidth

Gets and sets the width of the tile.

Remarks

N/A

Return Value
  • Type:Int32

TileHeight

Gets and sets the height of the tile.

Remarks

N/A

Return Value
  • Type:Int32

TransitionEffect

Gets and sets the transition effect of the overlay when zooming. After zooming, the existing tiles stretch and leave in current viewport. Set to None when its background is transparent.

Remarks

N/A

Return Value

TileCache

Gets and sets a tile cache object for saving the tiles.

Remarks

N/A

Return Value

ImageFormat

Gets and sets drawing format for the tiles.

Remarks

N/A

Return Value

JpegQuality

Gets or sets the image quality when the TileImageFormat is Jpeg; otherwise this property has no effects. Its default value is 80.

Remarks

N/A

Return Value
  • Type:Int32

TileBuffer

This property gets and sets the number of extra rows and colums of tiles on each side which will surround the minimum grid tiles to cover the map.

Remarks

N/A

Return Value
  • Type:Int32

MaxExtent

This property gets or sets the max extent of matrix to calculate the tiles.

Remarks

By default, MaxExtent is null; the matrix is created depending on the GeographyUnit of current map. When it's DecimalDegree, the matrix' is calculated as (-180, 90, 180, -90) as MaxExtent. While it's not DecimalDegree, the matrix is (-1000000000, 1000000000, 1000000000, -1000000000); It's allowed to modify it to customize the matrix.

Return Value

WrappingMode

Thie property gets or sets whether allow wrap date line.

Remarks

N/A

Return Value

WrappingExtent

N/A

Remarks

N/A

Return Value

AutoRefreshInterval

N/A

Remarks

N/A

Return Value
  • Type:TimeSpan

Name

N/A

Remarks

N/A

Return Value
  • Type:String

MapArguments

N/A

Remarks

N/A

Return Value

OverlayCanvas

N/A

Remarks

N/A

Return Value
  • Type:Canvas

IsBase

N/A

Remarks

N/A

Return Value
  • Type:Boolean

CanRefreshRegion

N/A

Remarks

N/A

Return Value
  • Type:Boolean

DrawingExceptionMode

N/A

Remarks

N/A

Return Value

Attribution

N/A

Remarks

N/A

Return Value
  • Type:String

IsEmpty

N/A

Remarks

N/A

Return Value
  • Type:Boolean

Protected Properties

FxQ=

N/A

Remarks

N/A

Return Value
  • Type:aBY=

DrawingCanvas

Gets current drawing canvas which holds actual tile controls.

Remarks

N/A

Return Value
  • Type:Canvas

StretchCanvas

Gets current stretch canvas which holds stretched tile controls during the stretch transition.

Remarks

N/A

Return Value
  • Type:Canvas

PreviousExtent

N/A

Remarks

N/A

Return Value

3BM=

N/A

Remarks

N/A

Return Value
  • Type:Double

IsOverlayInitialized

N/A

Remarks

N/A

Return Value
  • Type:Boolean

Public Events

DrawTilesProgressChanged This event raises when download progress is changed.

Remarks

N/A

Event Arguments:DrawTilesProgressChangedTileOverlayEventArgs

DrawingTile This event raises before the tile is drawing.

Remarks

N/A

Event Arguments:DrawingTileTileOverlayEventArgs

DrawnTile This event raises after the tile is drawn.

Remarks

N/A

Event Arguments:DrawnTileTileOverlayEventArgs

DrawingException N/A

Remarks

N/A

Event Arguments:DrawingExceptionTileOverlayEventArgs

DrawnException N/A

Remarks

N/A

Event Arguments:DrawnExceptionTileOverlayEventArgs

TileTypeChanged N/A

Remarks

N/A

Event Arguments:TileTypeChangedTileOverlayEventArgs

StartingThread N/A

Remarks

N/A

Event Arguments:StartingThreadTileOverlayEventArgs

Drawing N/A

Remarks

N/A

Event Arguments:DrawingOverlayEventArgs

Drawn N/A

Remarks

N/A

Event Arguments:DrawnOverlayEventArgs

DrawingAttribution N/A

Remarks

N/A

Event Arguments:DrawingAttributionOverlayEventArgs

DrawnAttribution N/A

Remarks

N/A

Event Arguments:DrawnAttributionOverlayEventArgs

thinkgeo.mapsuite.wpfdesktopedition.tileoverlay.1442546182.txt.gz · Last modified: 2015/09/18 03:16 by admin