BuildingOverlay¶
Namespace: ThinkGeo.Core
public class BuildingOverlay : Overlay, System.IDisposable
Inheritance Object → Overlay → BuildingOverlay
Implements IDisposable
Properties¶
HeightUnit¶
public DistanceUnit HeightUnit { get; set; }
Property Value¶
DistanceUnit
HeightColumnName¶
public string HeightColumnName { get; set; }
Property Value¶
BuildingFeatureSource¶
public FeatureSource BuildingFeatureSource { get; set; }
Property Value¶
FeatureSource
LightSideColor¶
public GeoColor LightSideColor { get; set; }
Property Value¶
GeoColor
ShadowSideColor¶
public GeoColor ShadowSideColor { get; set; }
Property Value¶
GeoColor
RoofColor¶
public GeoColor RoofColor { get; set; }
Property Value¶
GeoColor
TileSize¶
public int TileSize { get; set; }
Property Value¶
TileType¶
public TileType TileType { get; set; }
Property Value¶
DrawingQuality¶
public DrawingQuality DrawingQuality { get; set; }
Property Value¶
DrawingQuality
CanRefreshRegion¶
public bool CanRefreshRegion { get; protected set; }
Property Value¶
IsBase¶
public bool IsBase { get; set; }
Property Value¶
Name¶
Gets or sets the name of this overaly.
public string Name { get; set; }
Property Value¶
MapArguments¶
Gets or sets current map information which will be used for calculating mechanism.
public MapArguments MapArguments { get; set; }
Property Value¶
MapArguments
OverlayCanvas¶
Gets or sets the actual canvas which maintains all the visual elements on the overlay.
public Canvas OverlayCanvas { get; set; }
Property Value¶
Canvas
DrawingExceptionMode¶
This property gets and sets the DrawingExceptionMode used when an exception occurs during drawing.
public DrawingExceptionMode DrawingExceptionMode { get; set; }
Property Value¶
DrawingExceptionMode
IsVisible¶
Gets or sets if this overlay is visible.
public bool IsVisible { get; set; }
Property Value¶
RefreshTypeOnResize¶
public OverlayRefreshType RefreshTypeOnResize { get; set; }
Property Value¶
Attribution¶
public string Attribution { get; set; }
Property Value¶
IsEmpty¶
This property gets if this overlay is empty or not.
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.
AutoRefreshInterval¶
public TimeSpan AutoRefreshInterval { get; set; }
Property Value¶
Constructors¶
BuildingOverlay()¶
public BuildingOverlay()
BuildingOverlay(FeatureSource)¶
public BuildingOverlay(FeatureSource buildingFeatureSource)
Parameters¶
buildingFeatureSource
FeatureSource
BuildingOverlay(FeatureSource, String, DistanceUnit)¶
public BuildingOverlay(FeatureSource buildingFeatureSource, string heightColumnName, DistanceUnit heightUnit)
Parameters¶
buildingFeatureSource
FeatureSource
heightColumnName
String
heightUnit
DistanceUnit
Methods¶
DrawCore(RectangleShape, OverlayRefreshType)¶
protected void DrawCore(RectangleShape targetExtent, OverlayRefreshType overlayRefreshType)
Parameters¶
targetExtent
RectangleShape
overlayRefreshType
OverlayRefreshType
DrawAsyncCore(RectangleShape, OverlayRefreshType, CancellationToken)¶
protected Task DrawAsyncCore(RectangleShape targetExtent, OverlayRefreshType overlayRefreshType, CancellationToken cancellationToken)
Parameters¶
targetExtent
RectangleShape
overlayRefreshType
OverlayRefreshType
cancellationToken
CancellationToken
Returns¶
Events¶
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;
DrawingAttribution¶
public event EventHandler<DrawingAttributionOverlayEventArgs> DrawingAttribution;
DrawnAttribution¶
public event EventHandler<DrawnAttributionOverlayEventArgs> DrawnAttribution;
ThrowingException¶
public event EventHandler<ThrowingExceptionOverlayEventArgs> ThrowingException;