Kendo.Mvc.UI.Fluent.MapBuilder
Defines the fluent API for configuring the Kendo UI Map
Methods
Center(System.Double[])
The map center. Coordinates are listed as [Latitude, Longitude].
Parameters
value System.Double[]
The value for Center
Controls(System.Action<Kendo.Mvc.UI.Fluent.MapControlsSettingsBuilder>)
The configuration of built-in map controls.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.MapControlsSettingsBuilder>
The configurator for the controls setting.
LayerDefaults(System.Action<Kendo.Mvc.UI.Fluent.MapLayerDefaultsSettingsBuilder>)
The default configuration for map layers by type.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.MapLayerDefaultsSettingsBuilder>
The configurator for the layerdefaults setting.
Layers(System.Action<Kendo.Mvc.UI.Fluent.MapLayerFactory>)
The configuration of the map layers. The layer type is determined by the value of the type field.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.MapLayerFactory>
The configurator for the layers setting.
MarkerDefaults(System.Action<Kendo.Mvc.UI.Fluent.MapMarkerDefaultsSettingsBuilder>)
The default options for all markers.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.MapMarkerDefaultsSettingsBuilder>
The configurator for the markerdefaults setting.
Markers(System.Action<Kendo.Mvc.UI.Fluent.MapMarkerFactory>)
Static markers to display on the map.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.MapMarkerFactory>
The configurator for the markers setting.
MinZoom(System.Double)
The minimum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
Parameters
value System.Double
The value for MinZoom
MaxZoom(System.Double)
The maximum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
Parameters
value System.Double
The value for MaxZoom
MinSize(System.Double)
The size of the map in pixels at zoom level 0.
Parameters
value System.Double
The value for MinSize
Pannable(System.Boolean)
Controls whether the user can pan the map.
Parameters
value System.Boolean
The value for Pannable
Wraparound(System.Boolean)
Specifies whether the map should wrap around the east-west edges.
Parameters
value System.Boolean
The value for Wraparound
Zoom(System.Double)
The initial zoom level.Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).The map size is derived from the zoom level and minScale options: size = (2 ^ zoom) * minSize
Parameters
value System.Double
The value for Zoom
Zoomable(System.Boolean)
Controls whether the map zoom level can be changed by the user.
Parameters
value System.Boolean
The value for Zoomable
Events(System.Action<Kendo.Mvc.UI.Fluent.MapEventBuilder>)
Configures the client-side events.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.MapEventBuilder>
The client events action.
Example (ASPX)
@(Html.Kendo().Map()
.Name("Map")
.Events(events => events
.BeforeReset("onBeforeReset")
)
)