MapLayerStyleSettingsBuilder
Methods
Fill(System.Action)
Defines the fill settings for the Shape layer.
Parameters
configurator - System.Action<MapLayerStyleFillSettingsBuilder>
The action that configures the fill settings.
Example
@(Html.Kendo().Map()
.Name("map")
.Layers(layers =>
{
layers.Add().Type(MapLayerType.Shape).Style(style =>style.Fill(f => f.Color("red").Opacity(0.5)));
})
)
Stroke(System.Action)
Defines the stroke settings for the Shape layer.
Parameters
configurator - System.Action<MapLayerStyleStrokeSettingsBuilder>
The action that configures the stroke settings.
Example
@(Html.Kendo().Map()
.Name("map")
.Layers(layers =>
{
layers.Add().Type(MapLayerType.Shape).Style(style =>style.Stroke(f => f.Color("green").Opacity(0.8)));
})
)