MapControlsSettingsBuilder
Methods
Attribution(System.Boolean)
Enables or disables the built-in attribution control.
Parameters
enabled - System.Boolean
Enables or disables the attribution option.
Example
@(Html.Kendo().Map()
.Name("map")
.Controls(controls => controls.Attribution(true))
)
Attribution(System.Action)
Configures the attribution control.
Parameters
configurator - System.Action<MapControlsAttributionSettingsBuilder>
The action that configures the attribution.
Example
@(Html.Kendo().Map()
.Name("map")
.Controls(controls => controls.Attribution(attr => attr.Position(MapControlPosition.TopLeft)))
)
Navigator(System.Boolean)
Enables or disables the built-in navigator control (directional pad).
Parameters
enabled - System.Boolean
Enables or disables the navigator option.
Example
@(Html.Kendo().Map()
.Name("map")
.Controls(controls => controls.Navigator(true))
)
Navigator(System.Action)
Configures navigator control (directional pad).
Parameters
configurator - System.Action<MapControlsNavigatorSettingsBuilder>
The action that configures the navigator.
Example
@(Html.Kendo().Map()
.Name("map")
.Controls(controls => controls.Navigator(nav => nav.Position(MapControlPosition.TopLeft)))
)
Zoom(System.Boolean)
Enables or disables the built-in zoom control (+/- button).
Parameters
enabled - System.Boolean
Enables or disables the zoom control option.
Example
@(Html.Kendo().Map()
.Name("map")
.Controls(controls => controls.Zoom(true))
)
Zoom(System.Action)
Configures the built-in zoom control (+/- button).
Parameters
configurator - System.Action<MapControlsZoomSettingsBuilder>
The action that configures the zoom.
Example
@(Html.Kendo().Map()
.Name("map")
.Controls(controls => controls.Zoom(zoom => zoom.Position(MapControlPosition.TopLeft)))
)