MapProps
Represents the props of the KendoReact Map component.
Name | Type | Default | Description |
---|---|---|---|
center? |
|
The map center. Coordinates are listed as | |
className? |
|
Sets additional CSS classes to the component. | |
controls? |
|
The configuration of built-in map controls. | |
dir? |
|
Represents the | |
maxZoom? |
|
|
The maximum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features). |
minSize? |
|
|
The size of the map in pixels at zoom level 0. |
minZoom? |
|
|
The minimum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features). |
onBeforeReset? |
|
Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers. | |
onMapClick? |
|
Fired when the user clicks on the map. | |
onMarkerActivate? |
|
Fired when a marker has been displayed and has a DOM element assigned. | |
onMarkerClick? |
|
Fired when a marker has been clicked or tapped. | |
onMarkerCreated? |
|
Fired when a marker has been created and is about to be displayed. Cancelling the event will prevent the marker from being shown. | |
onPan? |
|
Fired while the map viewport is being moved. | |
onPanEnd? |
|
Fires after the map viewport has been moved. | |
onRefresh? |
|
Fires when the Map is about to refresh. The event can be used to prevent the refresh of the Map in specific cases. | |
onReset? |
|
Fired when the map is reset. This typically occurs on initial load and after a zoom/center change. | |
onShapeClick? |
|
Fired when a shape is clicked or tapped. | |
onShapeCreated? |
|
Fired when a shape is created, but is not rendered yet. | |
onShapeFeatureCreated? |
|
Fired when a GeoJSON Feature is created on a shape layer. | |
onShapeMouseEnter? |
|
Fired when the mouse enters a shape.
| |
onShapeMouseLeave? |
|
Fired when the mouse leaves a shape.
| |
onZoomEnd? |
|
Fired when the map zoom level has changed. | |
onZoomStart? |
|
Fired when the map zoom level is about to change. Cancelling the event will prevent the user action. | |
pannable? |
|
|
Controls whether the user can pan the map. |
style? |
|
The styles that are applied to the component. | |
wraparound? |
|
|
Specifies whether the map should wrap around the east-west edges. |
zoom? |
|
|
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
|
zoomable? |
|
|
Controls whether the map zoom level can be changed by the user. |