MapTagHelper

Example

Razor
<kendo-map>
    <controls></controls>
    <layer-defaults></layer-defaults>
    <layers></layers>
    <marker-defaults></marker-defaults>
    <markers></markers>
    <messages />
</kendo-map>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
centerDouble[]The map center. Coordinates are listed as [Latitude, Longitude].
max-zoomDoubleThe maximum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
min-sizeDoubleThe size of the map in pixels at zoom level 0.
min-zoomDoubleThe minimum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
on-before-resetStringThe name of the JavaScript function that will handle the beforeReset event. Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
on-clickStringThe name of the JavaScript function that will handle the click event. Fired when the user clicks on the map.
on-marker-activateStringThe name of the JavaScript function that will handle the markerActivate event. Fired when a marker has been displayed and has a DOM element assigned.
on-marker-clickStringThe name of the JavaScript function that will handle the markerClick event. Fired when a marker has been clicked or tapped.
on-marker-createdStringThe name of the JavaScript function that will handle the markerCreated event. Fired when a marker has been created and is about to be displayed. Cancelling the event will prevent the marker from being shown.Use markerActivate if you need to access the marker DOM element.
on-panStringThe name of the JavaScript function that will handle the pan event. Fired while the map viewport is being moved.
on-pan-endStringThe name of the JavaScript function that will handle the panEnd event. Fires after the map viewport has been moved.
on-resetStringThe name of the JavaScript function that will handle the reset event. Fired when the map is reset. This typically occurs on initial load and after a zoom/center change.
on-shape-clickStringThe name of the JavaScript function that will handle the shapeClick event. Fired when a shape is clicked or tapped.
on-shape-createdStringThe name of the JavaScript function that will handle the shapeCreated event. Fired when a shape is created, but is not rendered yet.
on-shape-feature-createdStringThe name of the JavaScript function that will handle the shapeFeatureCreated event. Fired when a GeoJSON Feature is created on a shape layer.
on-shape-mouse-enterStringThe name of the JavaScript function that will handle the shapeMouseEnter event. Fired when the mouse enters a shape.
on-shape-mouse-leaveStringThe name of the JavaScript function that will handle the shapeMouseLeave event. Fired when the mouse leaves a shape.
on-zoom-endStringThe name of the JavaScript function that will handle the zoomEnd event. Fired when the map zoom level has changed.
on-zoom-startStringThe name of the JavaScript function that will handle the zoomStart event. Fired when the map zoom level is about to change. Cancelling the event will prevent the user action.
pannableBooleanControls whether the user can pan the map.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
wraparoundBooleanSpecifies whether the map should wrap around the east-west edges.
zoomDoubleThe 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
zoomableBooleanControls whether the map zoom level can be changed by the user.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support