--- title: Map description: "Learn how to build custom functionality when working with the React Map by Kendo UI with the help of the Map." api_reference: true type: inner_api slug: api_map_map --- # Map Represents the [KendoReact Map component](https://www.telerik.com/kendo-react-ui/components/map).
Name Type Default Description
#### extent undefined | [Extent]({% slug api_map_extent %}) Sets the extent (visible area) of the map.
#### layers [MapLayer]({% slug api_map_maplayer %})[] The marker layers instances.
#### props Readonly<[MapProps]({% slug api_map_mapprops %})> 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.
Parameters
e any The mouse event.
Returns
undefined | Point The event coordinates relative to the map element.
#### eventToLayer
Retrieves projected (layer) coordinates that correspond to this mouse event. Layer coordinates are absolute and change only when the zoom level is changed.
Parameters
e any The mouse event.
Returns
undefined | Point The projected (layer) coordinates that correspond to this event.
#### eventToLocation
Retrieves the geographic location that correspond to this mouse event.
Parameters
e any The mouse event.
Returns
undefined | Point 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.
Parameters
e any The mouse event.
Returns
undefined | Point The relative (view) coordinates that correspond to this mouse event.
#### layerToLocation
Transforms layer (projected) coordinates to geographical location.
Parameters
point number[] | Point 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]({% slug api_map_location %}) The geographic location that corresponds to the layer coordinates.
#### loadMarkers
Load markers in the Map. This method will clear the current markers and show the new ones.
Parameters
newMarkers any[] An array of markers.
#### locationToLayer
Returns the layer (projected) coordinates that correspond to a geographical location.
Parameters
location number[] | [Location]({% slug api_map_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.
#### locationToView
Returns the view (relative) coordinates that correspond to a geographical location.
Parameters
location number[] | [Location]({% slug api_map_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.
#### resize
Detects the size of the container and redraws the Map. Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
#### viewSize
Retrieves the size of the visible portion of the map.
Returns
{ height: number; width: number; } The size (width and height) of the visible portion of the map.
#### viewToLocation
Returns the geographical location that correspond to the view (relative) coordinates.
Parameters
point number[] | Point 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]({% slug api_map_location %}) The geographic location that corresponds to the view coordinates.