ThinkGeoCloudVectorMapsOverlay¶
Namespace: ThinkGeo.UI.Android
public class ThinkGeoCloudVectorMapsOverlay : TileOverlay, System.IDisposable
Inheritance Object → OverlayBase → Overlay → TileOverlay → ThinkGeoCloudVectorMapsOverlay
Implements IDisposable
Properties¶
ClientId¶
Gets or sets the client identifier.
public string ClientId { get; set; }
Property Value¶
The client identifier.
ClientSecret¶
Gets or sets the client secret.
public string ClientSecret { get; set; }
Property Value¶
The client secret.
TimeoutInSeconds¶
Gets or sets the timeout in seconds.
public int TimeoutInSeconds { get; set; }
Property Value¶
The timeout in seconds.
WebProxy¶
Gets or sets the web proxy.
public IWebProxy WebProxy { get; set; }
Property Value¶
IWebProxy
The web proxy.
MapType¶
Gets or sets the type of the map.
public ThinkGeoCloudVectorMapsMapType MapType { get; set; }
Property Value¶
ThinkGeoCloudVectorMapsMapType
The type of the map.
StyleJsonUri¶
Gets or sets the style json URI.
public Uri StyleJsonUri { get; set; }
Property Value¶
Uri
The style json URI.
TileCache¶
Gets or sets the tile cache.
public RasterTileCache TileCache { get; set; }
Property Value¶
RasterTileCache
The tile cache.
VectorTileCache¶
Gets or sets the vector tile cache.
public FileVectorTileCache VectorTileCache { get; set; }
Property Value¶
FileVectorTileCache
The vector tile cache.
LayerType¶
Gets or sets the LayerType of the Overlay.
public LayerType LayerType { get; set; }
Property Value¶
LayerType
TileSizeMode¶
public TileSizeMode TileSizeMode { get; set; }
Property Value¶
TileSizeMode
TileWidth¶
Gets or sets the width of the tile.
public int TileWidth { get; set; }
Property Value¶
Int32
The width of the tile.
TileHeight¶
Gets or sets the height of the tile.
public int TileHeight { get; set; }
Property Value¶
Int32
The height of the tile.
IsCacheOnly¶
Gets or sets a value indicating whether this instance is cache only.
public bool IsCacheOnly { get; set; }
Property Value¶
Boolean
true if this instance is cache only; otherwise, false.
TileType¶
Gets and sets the overlay is formed by multiple tiles or single tile.
public TileType TileType { get; set; }
Property Value¶
TileType
The type of the tile.
TileSnappingMode¶
Gets or sets the tile snapping mode.
public TileSnappingMode TileSnappingMode { get; set; }
Property Value¶
TileSnappingMode
The tile snapping mode.
TransitionEffect¶
Gets or sets the tile transition effect.
public TransitionEffect TransitionEffect { get; set; }
Property Value¶
TransitionEffect
The tile snapping mode.
OverlayView¶
Gets or sets the overlay view.
public MapLayout OverlayView { get; set; }
Property Value¶
MapLayout
The overlay view.
IsVisible¶
public bool IsVisible { get; set; }
Property Value¶
Name¶
Gets or sets the name of this overaly.
public string Name { get; set; }
Property Value¶
DrawingExceptionMode¶
This property gets and sets the DrawingExceptionMode used when an exception occurs during drawing.
public DrawingExceptionMode DrawingExceptionMode { get; set; }
Property Value¶
DrawingExceptionMode
The drawing exception mode.
MapArguments¶
Gets or sets the map arguments.
public MapArguments MapArguments { get; set; }
Property Value¶
MapArguments
The map arguments.
Attribution¶
Gets or sets the attribution.
public string Attribution { get; set; }
Property Value¶
String
The attribution.
IsEmpty¶
Gets a value indicating whether this instance is empty.
public bool IsEmpty { get; }
Property Value¶
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.
DrawingQuality¶
Gets or sets the drawingQuality for this overlay.
public DrawingQuality DrawingQuality { get; set; }
Property Value¶
DrawingQuality
Opacity¶
Gets or sets the opacity for this overlay.
public double Opacity { get; set; }
Property Value¶
Constructors¶
ThinkGeoCloudVectorMapsOverlay()¶
Initializes a new instance of the ThinkGeoCloudVectorMapsOverlay class.
public ThinkGeoCloudVectorMapsOverlay()
ThinkGeoCloudVectorMapsOverlay(String, String)¶
Initializes a new instance of the ThinkGeoCloudVectorMapsOverlay class.
public ThinkGeoCloudVectorMapsOverlay(string clientId, string clientSecret)
Parameters¶
clientId
String
The client identifier.
clientSecret
String
The client secret.
ThinkGeoCloudVectorMapsOverlay(String, String, ThinkGeoCloudVectorMapsMapType)¶
Initializes a new instance of the ThinkGeoCloudVectorMapsOverlay class.
public ThinkGeoCloudVectorMapsOverlay(string clientId, string clientSecret, ThinkGeoCloudVectorMapsMapType mapType)
Parameters¶
clientId
String
The client identifier.
clientSecret
String
The client secret.
mapType
ThinkGeoCloudVectorMapsMapType
Type of the map.
ThinkGeoCloudVectorMapsOverlay(String, String, Uri)¶
Initializes a new instance of the ThinkGeoCloudVectorMapsOverlay class.
public ThinkGeoCloudVectorMapsOverlay(string clientId, string clientSecret, Uri styleJsonUri)
Parameters¶
clientId
String
The client identifier.
clientSecret
String
The client secret.
styleJsonUri
Uri
The style json URI.
Methods¶
GetBoundingBoxCore()¶
Gets the bounding box core.
protected RectangleShape GetBoundingBoxCore()
Returns¶
RectangleShape
RectangleShape.
OnSendingWebRequest(SendingWebRequestEventArgs)¶
Raises the event.
protected void OnSendingWebRequest(SendingWebRequestEventArgs e)
Parameters¶
e
SendingWebRequestEventArgs
The instance containing the event data.
OnSentWebRequest(SentWebRequestEventArgs)¶
Raises the event.
protected void OnSentWebRequest(SentWebRequestEventArgs e)
Parameters¶
e
SentWebRequestEventArgs
The instance containing the event data.
DrawTileAsyncCore(GeoCanvas, TileView)¶
protected Task DrawTileAsyncCore(GeoCanvas geoCanvas, TileView tile)
Parameters¶
geoCanvas
GeoCanvas
tile
TileView
Returns¶
DrawTileCore(GeoCanvas, TileView)¶
protected void DrawTileCore(GeoCanvas geoCanvas, TileView tile)
Parameters¶
geoCanvas
GeoCanvas
tile
TileView
Events¶
SendingWebRequest¶
Occurs when [sending web request].
public event EventHandler<SendingWebRequestEventArgs> SendingWebRequest;
SentWebRequest¶
Occurs when [sent web request].
public event EventHandler<SentWebRequestEventArgs> SentWebRequest;
DrawingException¶
Occurs before exception is drawing on map.
public event EventHandler<DrawingExceptionOverlayEventArgs> DrawingException;
DrawnException¶
Occurs after exception is drawn on map.
public event EventHandler<DrawnExceptionOverlayEventArgs> DrawnException;
Drawing¶
This event raises before the overlay is drawing.
public event EventHandler<DrawingOverlayEventArgs> Drawing;
Drawn¶
This event raises after the overlay is drawn.
public event EventHandler<DrawnOverlayEventArgs> Drawn;