New to KendoReact? Start a free 30-day trial

Map

Component

Definition

Package:@progress/kendo-react-map

Properties

props

MapProps intersected with RefAttributes​<any>

The props of the Map component.

Accessors

extent

undefined | Extent

Sets the extent (visible area) of the map.

The marker layers instances.

Methods

Returns the event coordinates relative to the map element. Offset coordinates are not synchronized to a particular location on the map.

Parameters:eany

The mouse event.

Returns:

undefined | Point

The event coordinates relative to the map element.

Retrieves projected (layer) coordinates that correspond to this mouse event. Layer coordinates are absolute and change only when the zoom level is changed.

Parameters:eany

The mouse event.

Returns:

undefined | Point

The projected (layer) coordinates that correspond to this event.

Retrieves the geographic location that correspond to this mouse event.

Parameters:eany

The mouse event.

Returns:

undefined | Point

The geographic location that correspond to this mouse event.

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.

Parameters:eany

The mouse event.

Returns:

undefined | Point

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

Transforms layer (projected) coordinates to geographical location.

Parameters:pointPoint | number[]

The layer (projected) coordinates. An array argument is assumed to be in x, y order.

zoom?number

Optional. Assumed zoom level. Defaults to the current zoom level.

Returns:

undefined | Location

The geographic location that corresponds to the layer coordinates.

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

Parameters:newMarkersany[]

An array of markers.

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

Parameters:locationnumber[] | Location

The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.

zoom?number

Optional. Assumed zoom level. Defaults to the current zoom level.

Returns:

undefined | Point

The layer (projected) coordinates.

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

Parameters:locationnumber[] | Location

The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.

Returns:

undefined | Point

The view coordinates that correspond to a geographical location.

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 }

The size (width and height) of the visible portion of the map.

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

Parameters:pointPoint | number[]

The view coordinates. An array argument is assumed to be in x, y order.

zoom?number

Optional. Assumed zoom level. Defaults to the current zoom level.

Returns:

undefined | Location

The geographic location that corresponds to the view coordinates.