Class BaseStyle
Defines a style used for rendering vector data
Inheritance
BaseStyle
Implements
Inherited Members
Namespace: Mapsui.Styles
Assembly: Mapsui.dll
Syntax
public abstract class BaseStyle : IStyle
Constructors
| Edit this page View SourceBaseStyle()
Declaration
public BaseStyle()
Properties
| Edit this page View SourceEnabled
Gets or sets whether objects in this style is rendered or not
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
GenerationId
Gets the generation identifier for this style instance. This changes when Modified() is called to signal that cached drawables should be invalidated.
Declaration
public long GenerationId { get; }
Property Value
| Type | Description |
|---|---|
| long |
MaxVisible
Gets or sets the maximum zoom value where the style is applied
Declaration
public double MaxVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
MinVisible
Gets or sets the minimum zoom value where the style is applied
Declaration
public double MinVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Opacity
Gets or sets the objects base opacity
Declaration
public float Opacity { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
| Edit this page View SourceModified()
Signals that the style has been modified. This updates the GenerationId so that cached drawables using this style can be invalidated.
Declaration
public virtual void Modified()