Map
A subclass of React.Component.
Represents the KendoReact Map component.
Name | Type | Default | Description |
---|---|---|---|
extent |
|
Sets the extent (visible area) of the map. | |
layers |
|
The marker layers instances. | |
props |
|
The props of the Map component. |
Methods
eventOffset | ||||||
---|---|---|---|---|---|---|
Returns the event coordinates relative to the map element. Offset coordinates are not synchronized to a particular location on the map. | ||||||
| ||||||
|
eventToLayer | ||||||
---|---|---|---|---|---|---|
Retrieves projected (layer) coordinates that correspond to this mouse event. Layer coordinates are absolute and change only when the zoom level is changed. | ||||||
| ||||||
|
eventToLocation | ||||||
---|---|---|---|---|---|---|
Retrieves the geographic location that correspond to this mouse event. | ||||||
| ||||||
|
eventToView | ||||||
---|---|---|---|---|---|---|
Retrieves relative (view) coordinates that correspond to this mouse event. Layer elements positioned on these coordinates will appear under the mouse cursor. View coordinates are no longer valid after a map reset. | ||||||
| ||||||
|
layerToLocation | |||||||||
---|---|---|---|---|---|---|---|---|---|
Transforms layer (projected) coordinates to geographical location. | |||||||||
| |||||||||
|
loadMarkers | ||||||
---|---|---|---|---|---|---|
Load markers in the Map. This method will clear the current markers and show the new ones. | ||||||
|
locationToLayer | |||||||||
---|---|---|---|---|---|---|---|---|---|
Returns the layer (projected) coordinates that correspond to a geographical location. | |||||||||
| |||||||||
|
locationToView | ||||||
---|---|---|---|---|---|---|
Returns the view (relative) coordinates that correspond to a geographical location. | ||||||
| ||||||
|
resize |
---|
Detects the size of the container and redraws the Map.
Resizing is automatic unless you set the |
viewSize | ||||
---|---|---|---|---|
Retrieves the size of the visible portion of the map. | ||||
|
viewToLocation | |||||||||
---|---|---|---|---|---|---|---|---|---|
Returns the geographical location that correspond to the view (relative) coordinates. | |||||||||
| |||||||||
|