# Add Titles to Map Shapes

## Environment

<table>
    <tbody>
	    <tr>
	    	<td>Product Version</td>
	    	<td>5.5.1</td>
	    </tr>
	    <tr>
	    	<td>Product</td>
	    	<td>Progress® KendoReact Map</td>
	    </tr>
    </tbody>
</table>

## Description

How can I add some title text for the shapes in the Map?

## Solution

1. Add a [shape layer](https://www.telerik.com/kendo-react-ui/components/map/layers/shape) to the Map configuration.
2. Attach a handler to the [`shapeCreated` event](https://www.telerik.com/kendo-react-ui/components/map/events) of the Map.
3. Create a method that will create a label for a given shape.
4. Inside the method, retrieve the shape center using the [element bounding box](https://www.telerik.com/kendo-react-ui/components/drawing/api/element#bbox).
5. Get a reference to the shape layer so you can draw on its surface.
6. Draw the label by using the [Text element](https://www.telerik.com/kendo-react-ui/components/drawing/api/text).

The following example demonstrates how to add title text for Map shapes that are loaded from GeoJSON.

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/map/add-shape-titles/source.txt)
