New to Telerik UI for ASP.NET Core? Download free 30-day trial

MapBuilder

Defines the fluent API for configuring the Kendo UI Map

Properties

WriteAction - Func

Methods

Center(System.Double[])

The map center. Coordinates are listed as [Latitude, Longitude].

Parameters

value - System.Double[]

The value for Center

Controls(System.Action)

The configuration of built-in map controls.

Parameters

configurator - System.Action<MapControlsSettingsBuilder>

The configurator for the controls setting.

LayerDefaults(System.Action)

The default configuration for map layers by type.

Parameters

configurator - System.Action<MapLayerDefaultsSettingsBuilder>

The configurator for the layerdefaults setting.

Layers(System.Action)

The configuration of the map layers. The layer type is determined by the value of the type field.

Parameters

configurator - System.Action<MapLayerFactory>

The configurator for the layers setting.

MarkerDefaults(System.Action)

The default options for all markers.

Parameters

configurator - System.Action<MapMarkerDefaultsSettingsBuilder>

The configurator for the markerdefaults setting.

Markers(System.Action)

Static markers to display on the map.

Parameters

configurator - System.Action<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)

Configures the client-side events.

Parameters

configurator - System.Action<MapEventBuilder>

The client events action.

Example


            @(Html.Kendo().Map()
                  .Name("Map")
                  .Events(events => events
                      .BeforeReset("onBeforeReset")
                  )
            )

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

In this article
Not finding the help you need?