Interface IStyle
Defines an interface for defining layer styles
Namespace: Mapsui.Styles
Assembly: Mapsui.dll
Syntax
public interface IStyle
Properties
| Edit this page View SourceEnabled
Gets or sets whether objects in this style is rendered or not
Declaration
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
long GenerationId { get; }
Property Value
| Type | Description |
|---|---|
| long |
MaxVisible
Gets or sets the maximum zoom value where the style is applied
Declaration
double MaxVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
MinVisible
Gets or sets the minimum zoom value where the style is applied
Declaration
double MinVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Opacity
Gets or sets the objects overall opacity
Declaration
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
void Modified()