Class BaseLayer
Assembly: Mapsui.dll
Syntax
public abstract class BaseLayer : ILayer, IAnimatable, INotifyPropertyChanged, IDisposable
Constructors
|
Edit this page
View Source
BaseLayer()
Creates a BaseLayer without a name
Declaration
|
Edit this page
View Source
BaseLayer(string)
Creates a BaseLayer with a name
Declaration
protected BaseLayer(string name)
Parameters
Type |
Name |
Description |
string |
name |
Name for this layer
|
Properties
|
Edit this page
View Source
Attribution
Declaration
public Hyperlink Attribution { get; set; }
Property Value
|
Edit this page
View Source
Busy
Declaration
public virtual bool Busy { get; set; }
Property Value
|
Edit this page
View Source
Enabled
Specifies whether this layer should be rendered or not
Declaration
public bool Enabled { get; set; }
Property Value
|
Edit this page
View Source
Extent
Returns the envelope of all available data in the layer
Declaration
public virtual MRect? Extent { get; protected set; }
Property Value
|
Edit this page
View Source
Id
Declaration
Property Value
|
Edit this page
View Source
IsMapInfoLayer
Indicates if the layer should be taken into account for the GetMapInfo request
Declaration
public bool IsMapInfoLayer { get; set; }
Property Value
|
Edit this page
View Source
MaxVisible
Minimum visible zoom level
Declaration
public double MaxVisible { get; set; }
Property Value
|
Edit this page
View Source
MinVisible
Minimum visible zoom level
Declaration
public double MinVisible { get; set; }
Property Value
|
Edit this page
View Source
Name
Declaration
public string Name { get; set; }
Property Value
|
Edit this page
View Source
Opacity
Declaration
public double Opacity { get; set; }
Property Value
|
Edit this page
View Source
Resolutions
List of native resolutions
Declaration
public virtual IReadOnlyList<double> Resolutions { get; }
Property Value
|
Edit this page
View Source
Style
Gets or sets rendering style of layer
Declaration
public IStyle? Style { get; set; }
Property Value
|
Edit this page
View Source
Tag
Gets or sets an arbitrary object value that can be used to store custom information about this element
Declaration
public object? Tag { get; set; }
Property Value
Methods
|
Edit this page
View Source
DataHasChanged()
To indicate the data withing the layer has changed. This triggers a DataChanged event.
This is necessary for situations where the layer can not know about changes to it's data
as in the case of editing of a geometry.
Declaration
public void DataHasChanged()
|
Edit this page
View Source
Dispose()
Declaration
public virtual void Dispose()
|
Edit this page
View Source
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
|
Edit this page
View Source
GetFeatures(MRect, double)
Get all features in a given MRect for a given resolution
Declaration
public abstract IEnumerable<IFeature> GetFeatures(MRect box, double resolution)
Parameters
Type |
Name |
Description |
MRect |
box |
|
double |
resolution |
Resolution of viewport
|
Returns
|
Edit this page
View Source
OnDataChanged(DataChangedEventArgs)
Declaration
protected void OnDataChanged(DataChangedEventArgs args)
Parameters
|
Edit this page
View Source
OnPropertyChanged(string)
Declaration
protected virtual void OnPropertyChanged(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Edit this page
View Source
UpdateAnimations()
Declaration
public virtual bool UpdateAnimations()
Returns
Type |
Description |
bool |
Returns true if animations are running and a graphics update is needed.
|
Events
|
Edit this page
View Source
DataChanged
Event called when the data within the layer has changed allowing
listeners to react to this.
Declaration
public event DataChangedEventHandler? DataChanged
Event Type
|
Edit this page
View Source
PropertyChanged
Called whenever a property changed
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
Implements
Extension Methods