# Getting Started with the .NET MAUI Map

This guide provides the information you need to start using the Telerik UI for .NET MAUI Map by adding the control to your project.

At the end, you will achieve the following result.

![.NET MAUI Map Getting Started](https://www.telerik.com/maui-ui/documentation/assets/ed862279f76f4f9ff8147c2ef4514280/map_getting_started.png)

## Prerequisites

Before adding the Map, you need to:

1. [Set up your .NET MAUI application](https://www.telerik.com/maui-ui/documentation/get-started/quickstart#prerequisites).

2. [Set Up Telerik Development Environment](https://www.telerik.com/maui-ui/documentation/get-started/quickstart#set-up-telerik-development-environment)

> important The Map is rendered through the [SkiaSharp graphics library](https://skia.org/).

## Define the Control

1. When your .NET MAUI application is set up, you are ready to add a Map control to your page.

```XAML
<telerik:RadMap x:Name="map" AutomationId="map">
    <telerik:RadMap.Layers>
        <telerik:MapShapefileLayer>
            <telerik:MapShapefileLayer.Reader>
                <telerik:MapShapeReader x:Name="reader"/>
            </telerik:MapShapefileLayer.Reader>
        </telerik:MapShapefileLayer>
    </telerik:RadMap.Layers>
</telerik:RadMap>
```

1. Add the following namespace:

```XAML
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
```

1. `RadMap` uses `.shp` files that contain the coordinates of the shapes that will be drawn by the map and an optional `.dbf` file for each `.shp` file with additional attributes of the shapes.

You need to assign the `.shp` file containing the data through the `Source` property of the `MapShapeReader` like this:

```C#
var assembly = this.GetType().Assembly;
var source = MapSource.FromResource("SDKBrowserMaui.Examples.MapControl.world.shp", assembly);
this.reader.Source = source;
```

> note In the example the `.shp` file is loaded as an `EmbeddedResource`, other options can be used as well, please check them in the [ShapefileLayer](https://www.telerik.com/maui-ui/documentation/controls/map/layers/shapefilelayer) topic.

## Additional Resources

* [.NET MAUI Map Product Page](https://www.telerik.com/maui-ui/map)
* [.NET MAUI Map Forum Page](https://www.telerik.com/forums/maui?tagId=1870)
* [Telerik .NET MAUI Blogs](https://www.telerik.com/blogs/mobile-net-maui)
* [Telerik .NET MAUI Roadmap](https://www.telerik.com/support/whats-new/maui-ui/roadmap)

## See Also

* [ShapefileLayer](https://www.telerik.com/maui-ui/documentation/controls/map/layers/shapefilelayer)
* [Selection](https://www.telerik.com/maui-ui/documentation/controls/map/selection)
* [Styling](https://www.telerik.com/maui-ui/documentation/controls/map/styling/shapesstyles)
