Overlay¶
Namespace: ThinkGeo.UI.Android
This class is the base class of all overlays in this overlay system.
public abstract class Overlay : OverlayBase, System.IDisposable
Inheritance Object → OverlayBase → Overlay
Implements IDisposable
Remarks:
The Overlay has the similar concept as the layer. Different types of overlays stack over each other to form a map. An overlay object is responsible for getting the configuration infomation from the user.
Usually an overlay represents an image with transparent background that is laid upon other overlay such as LayerOverlay, WmsOverlay. While the MarkerOverlay will not be rendered as an image, it is actually represents a control that holds bunch of marker images on the map.
Properties¶
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¶
Overlay()¶
public Overlay()
Methods¶
InitializeCore(MapArguments)¶
protected void InitializeCore(MapArguments mapArgument)
Parameters¶
mapArgument
MapArguments
Dispose(Boolean)¶
Releases unmanaged and - optionally - managed resources.
protected void Dispose(bool disposing)
Parameters¶
disposing
Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Events¶
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;