User Tools

Site Tools


thinkgeo.mapsuite.core.openstreetmaplayer

This is an old revision of the document!


ThinkGeo.MapSuite.Core.OpenStreetMapLayer

This class is use for Open Street Map Layer, and you also can get map from open street map server.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.Layer
      • ThinkGeo.MapSuite.Core.OpenStreetMapLayer

Members Summary

Public Constructors

OpenStreetMapLayer

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:The default constructor

OpenStreetMapLayer

  • Parameters:WebProxy
  • DeclaringType:N/A
  • Summary:This is the constructor the for the class.

Protected Constructors

Public Methods

CloneDeep

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

Close

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

Draw

Equals

  • Parameters:Object
  • DeclaringType:Object
  • Summary:N/A

GetBoundingBox

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

GetHashCode

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetThreadSafetyLevel

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

GetType

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Open

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

RequestDrawing

RequestDrawing

RequestDrawing

RequestDrawing

RequestDrawing

  • Parameters:TimeSpan
  • DeclaringType:Layer
  • Summary:N/A

RequestDrawing

RequestDrawing

RequestDrawing

RequestDrawing

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

ToString

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Protected Methods

CloneDeepCore

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

CloseCore

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method closes the Layer and releases any resources it was using.

DrawAttributionCore

DrawCore

DrawException

DrawExceptionCore

Finalize

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetBoundingBoxCore

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

GetThreadSafetyLevelCore

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

MemberwiseClone

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

OnDrawingAttribution

OnDrawingException

OnDrawingProgressChanged

OnDrawnAttribution

OnDrawnException

OnRequestedDrawing

OnRequestingDrawing

OnSendingWebRequest

OnSentWebRequest

OpenCore

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method opens the Layer so that it is initialized and ready to use.

SendWebRequest

  • Parameters:WebRequest
  • DeclaringType:N/A
  • Summary:N/A

SendWebRequestCore

  • Parameters:WebRequest
  • DeclaringType:N/A
  • Summary:N/A

Public Properties

Attribution

  • Return:String
  • Summary:N/A

BlueTranslation

  • Return:Single
  • Summary:N/A

CachePictureFormat

CustomServerUris

  • Return:Collection<Uri>
  • Summary:N/A

DrawingExceptionMode

DrawingTime

  • Return:TimeSpan
  • Summary:N/A

GreenTranslation

  • Return:Single
  • Summary:N/A

HasBoundingBox

  • Return:Boolean
  • Summary:N/A

IsGrayscale

  • Return:Boolean
  • Summary:N/A

IsNegative

  • Return:Boolean
  • Summary:N/A

IsOpen

  • Return:Boolean
  • Summary:N/A

IsVisible

  • Return:Boolean
  • Summary:N/A

KeyColors

  • Return:Collection<GeoColor>
  • Summary:N/A

Name

  • Return:String
  • Summary:N/A

ProjectedTileCache

ProjectionFromSphericalMercator

RedTranslation

  • Return:Single
  • Summary:N/A

RequestDrawingInterval

  • Return:TimeSpan
  • Summary:N/A

TileCache

TimeoutInSeconds

  • Return:Int32
  • Summary:Gets or sets a value represents the request timeout from the OpenStreetMap server.

Transparency

  • Return:Single
  • Summary:N/A

WebProxy

  • Return:WebProxy
  • Summary:This property gets or sets the proxy used for requesting a Web Response.

ZoomlevelSet

Protected Properties

IsOpenCore

  • Return:Boolean
  • Summary:N/A

Public Events

Public Constructors

OpenStreetMapLayer()

The default constructor

Remarks

The constructor initilizes the properties. WebProxy is set to null.

Parameters

OpenStreetMapLayer(WebProxy)

This is the constructor the for the class.

Remarks

This constructor initializes a new layer and assgin a web proxy.

Parameters

webProxy

  • Type:WebProxy
  • Description:The web proxy for OpenStreetMap Server Go Back ===== Protected Constructors ===== ===== Public Methods ===== === CloneDeep() === N/A ==== Remarks ==== N/A Return Value * Return Type:Layer * Description:N/A ==== Parameters ==== Go Back === Close() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === Draw(GeoCanvas,Collection<SimpleCandidate>) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:N/A Go Back === Equals(Object) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== obj * Type:Object * Description:N/A Go Back === GetBoundingBox() === N/A ==== Remarks ==== N/A Return Value * Return Type:RectangleShape * Description:N/A ==== Parameters ==== Go Back === GetHashCode() === N/A ==== Remarks ==== N/A Return Value * Return Type:Int32 * Description:N/A ==== Parameters ==== Go Back === GetThreadSafetyLevel() === N/A ==== Remarks ==== N/A Return Value * Return Type:ThreadSafetyLevel * Description:N/A ==== Parameters ==== Go Back === GetType() === N/A ==== Remarks ==== N/A Return Value * Return Type:Type * Description:N/A ==== Parameters ==== Go Back === Open() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentsToRefresh * Type:IEnumerable<RectangleShape> * Description:N/A bufferTime * Type:TimeSpan * Description:N/A bufferTimeType * Type:RequestDrawingBufferTimeType * Description:N/A Go Back === RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentToRefresh * Type:RectangleShape * Description:N/A bufferTime * Type:TimeSpan * Description:N/A bufferTimeType * Type:RequestDrawingBufferTimeType * Description:N/A Go Back === RequestDrawing(RectangleShape,TimeSpan) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentToRefresh * Type:RectangleShape * Description:N/A bufferTime * Type:TimeSpan * Description:N/A Go Back === RequestDrawing(TimeSpan,RequestDrawingBufferTimeType) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== bufferTime * Type:TimeSpan * Description:N/A bufferTimeType * Type:RequestDrawingBufferTimeType * Description:N/A Go Back === RequestDrawing(TimeSpan) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== bufferTime * Type:TimeSpan * Description:N/A Go Back === RequestDrawing(IEnumerable<RectangleShape>) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentsToRefresh * Type:IEnumerable<RectangleShape> * Description:N/A Go Back === RequestDrawing(RectangleShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentToRefresh * Type:RectangleShape * Description:N/A Go Back === RequestDrawing(IEnumerable<RectangleShape>,TimeSpan) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentsToRefresh * Type:IEnumerable<RectangleShape> * Description:N/A bufferTime * Type:TimeSpan * Description:N/A Go Back === RequestDrawing() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === ToString() === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== Go Back ===== Protected Methods ===== === CloneDeepCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:Layer * Description:N/A ==== Parameters ==== Go Back === CloseCore() === This method closes the Layer and releases any resources it was using. ==== Remarks ==== This abstract method is called from the concrete public method Close. The close method plays an important role in the life cycle of the Layer. It may be called after drawing to release any memory and other resources that were allocated since the Open method was called. If you override this method, it is recommended that you take the following things into account: This method may be called multiple times, so we suggest you write the method so that that a call to a closed Layer is ignored and does not generate an error. We also suggest that in the Close you free all resources that have been opened. Remember that the object will not be destroyed, but will be re-opened possibly in the near future. Return Value * Return Type:Void * Description:None ==== Parameters ==== Go Back === DrawAttributionCore(GeoCanvas,String) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A attribution * Type:String * Description:N/A Go Back === DrawCore(GeoCanvas,Collection<SimpleCandidate>) === This method draws the Layer. ==== Remarks ==== This method is the concrete wrapper for the abstract method DrawCore. This method draws the representation of the layer based on the extent you provided. When implementing this abstract method, consider each feature and its column data values. You can use the full power of the GeoCanvas to do the drawing. If you need column data for a feature, be sure to override the GetRequiredColumnNamesCore and add the columns you need to the collection. In many of the styles, we add properties that allow the user to specify which field they need; then, in the GetRequiredColumnNamesCore, we read that property and add it to the collection. Return Value * Return Type:Void * Description:None ==== Parameters ==== canvas * Type:GeoCanvas * Description:This parameter is the canvas object or a GeoImage to draw on. labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:This parameter represents the labels used for collision detection and duplication checking. Go Back === DrawException(GeoCanvas,Exception) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A e * Type:Exception * Description:N/A Go Back === DrawExceptionCore(GeoCanvas,Exception) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A e * Type:Exception * Description:N/A Go Back === Finalize() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === GetBoundingBoxCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:RectangleShape * Description:N/A ==== Parameters ==== Go Back === GetThreadSafetyLevelCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:ThreadSafetyLevel * Description:N/A ==== Parameters ==== Go Back === MemberwiseClone() === N/A ==== Remarks ==== N/A Return Value * Return Type:Object * Description:N/A ==== Parameters ==== Go Back === OnDrawingAttribution(DrawingAttributionLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== args * Type:DrawingAttributionLayerEventArgs * Description:N/A Go Back === OnDrawingException(DrawingExceptionLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:DrawingExceptionLayerEventArgs * Description:N/A Go Back === OnDrawingProgressChanged(DrawingProgressChangedEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:DrawingProgressChangedEventArgs * Description:N/A Go Back === OnDrawnAttribution(DrawnAttributionLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== args * Type:DrawnAttributionLayerEventArgs * Description:N/A Go Back === OnDrawnException(DrawnExceptionLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:DrawnExceptionLayerEventArgs * Description:N/A Go Back === OnRequestedDrawing(RequestedDrawingLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== eventArgs * Type:RequestedDrawingLayerEventArgs * Description:N/A Go Back === OnRequestingDrawing(RequestingDrawingLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== eventArgs * Type:RequestingDrawingLayerEventArgs * Description:N/A Go Back === OnSendingWebRequest(SendingWebRequestEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:SendingWebRequestEventArgs * Description:N/A Go Back === OnSentWebRequest(SentWebRequestEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:SentWebRequestEventArgs * Description:N/A Go Back === OpenCore() === This method opens the Layer so that it is initialized and ready to use. ==== Remarks ==== This abstract method is called from the concrete public method Open. The open method plays an important role, as it is responsible for initializing the Layer. Most methods on the Layer will throw an exception if the state of the Layer is not opened. When the map draws each layer, the layer will be opened as one of its first steps; then, after it is finished drawing with that layer, it will close it. In this way, we are sure to release all resources used by the Layer. When implementing the abstract method, consider opening the FeatureSource or RasterSource. You will get a chance to close these in the Close method of the Layer. Return Value * Return Type:Void * Description:None ==== Parameters ==== Go Back === SendWebRequest(WebRequest) === N/A ==== Remarks ==== N/A Return Value * Return Type:WebResponse * Description:N/A ==== Parameters ==== webRequest * Type:WebRequest * Description:N/A Go Back === SendWebRequestCore(WebRequest) === N/A ==== Remarks ==== N/A Return Value * Return Type:WebResponse * Description:N/A ==== Parameters ==== webRequest * Type:WebRequest * Description:N/A Go Back ===== Public Properties ===== === Attribution === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === BlueTranslation === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === CachePictureFormat === The cache for picture format ==== Remarks ==== get or set a OpenStreetMapLayerPictureFormat object ==== Return Value ==== Return Type:OpenStreetMapLayerPictureFormat Go Back === CustomServerUris === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Collection<Uri> Go Back === DrawingExceptionMode === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:DrawingExceptionMode Go Back === DrawingTime === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:TimeSpan Go Back === GreenTranslation === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === HasBoundingBox === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === IsGrayscale === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === IsNegative === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === IsOpen === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === IsVisible === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === KeyColors === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Collection<GeoColor> Go Back === Name === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === ProjectedTileCache === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:BitmapTileCache Go Back === ProjectionFromSphericalMercator === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Projection Go Back === RedTranslation === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === RequestDrawingInterval === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:TimeSpan Go Back === TileCache === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:BitmapTileCache Go Back === TimeoutInSeconds === Gets or sets a value represents the request timeout from the OpenStreetMap server. ==== Remarks ==== N/A ==== Return Value ==== Return Type:Int32 Go Back === Transparency === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === WebProxy === This property gets or sets the proxy used for requesting a Web Response. ==== Remarks ==== N/A ==== Return Value ==== Return Type:WebProxy Go Back === ZoomlevelSet === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:ZoomLevelSet Go Back ===== Protected Properties ===== === IsOpenCore === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back ===== Public Events ===== === DrawingAttribution === N/A ==== Remarks ==== N/A Event Arguments:DrawingAttributionLayerEventArgs Go Back === DrawingException === N/A ==== Remarks ==== N/A Event Arguments:DrawingExceptionLayerEventArgs Go Back === DrawingProgressChanged === N/A ==== Remarks ==== N/A Event Arguments:DrawingProgressChangedEventArgs Go Back === DrawnAttribution === N/A ==== Remarks ==== N/A Event Arguments:DrawnAttributionLayerEventArgs Go Back === DrawnException === N/A ==== Remarks ==== N/A Event Arguments:DrawnExceptionLayerEventArgs Go Back === RequestedDrawing === N/A ==== Remarks ==== N/A Event Arguments:RequestedDrawingLayerEventArgs Go Back === RequestingDrawing === N/A ==== Remarks ==== N/A Event Arguments:RequestingDrawingLayerEventArgs Go Back === SendingWebRequest === N/A ==== Remarks ==== N/A Event Arguments:SendingWebRequestEventArgs Go Back === SentWebRequest === N/A ==== Remarks ==== N/A Event Arguments**:SentWebRequestEventArgs

Go Back

thinkgeo.mapsuite.core.openstreetmaplayer.1442486204.txt.gz · Last modified: 2015/09/17 10:36 by admin