New to KendoReact? Start a free 30-day trial

MapHandle

Interface

Represent the ref of the Map component.

Definition

Package:@progress/kendo-react-map

Properties

element

null | HTMLDivElement

The current root DOM element or null.

Returns the event coordinates relative to the map element.

Parameters:eanyReturns:

undefined | Point

Retrieves projected (layer) coordinates that correspond to this mouse event.

Parameters:eanyReturns:

undefined | Point

Retrieves the geographic location that correspond to this mouse event.

Parameters:eanyReturns:

undefined | Point

Retrieves relative (view) coordinates that correspond to this mouse event.

Parameters:eanyReturns:

undefined | Point

extent

undefined | Extent

The extent (visible area) of the map.

The marker layers instances.

Transforms layer (projected) coordinates to geographical location.

Parameters:pointPoint | number[]zoom?numberReturns:

undefined | Location

loadMarkers

(newMarkers: any[]) => void

Load markers in the Map. This method will clear the current markers and show the new ones.

Parameters:newMarkersany[]

Returns the layer (projected) coordinates that correspond to a geographical location.

Parameters:locationnumber[] | Locationzoom?numberReturns:

undefined | Point

Returns the view (relative) coordinates that correspond to a geographical location.

Parameters:locationnumber[] | LocationReturns:

undefined | Point

props

Readonly​<MapProps>

The props of the Map component.

resize

() => void

Detects the size of the container and redraws the Map. Resizing is automatic unless you set the resizeRateLimit option to 0.

Retrieves the size of the visible portion of the map.

Returns:

{ width: number; height: number }

Returns the geographical location that correspond to the view (relative) coordinates.

Parameters:pointPoint | number[]zoom?numberReturns:

undefined | Location