# .NET MAUI Map Label Styling

The `MapShapefileLayer` has a `ShapeLabelStyle` property that is of `MapShapeLabelStyle` type and defines the style of the labels.

`MapShapeLabelStyle` provides the following properties you can use to customize the way labels on the map will look:

* `TextColor`
* `FontSize`
* `FontFamily`
* `FontAttributes`

The example shows the `ShapeLabelStyle` property applied:

```XAML
<telerik:RadMap x:Name="map">
    <telerik:RadMap.Layers>
        <telerik:MapShapefileLayer LabelAttributeName="CNTRY_NAME">
            <telerik:MapShapefileLayer.Reader>
                <telerik:MapShapeReader x:Name="reader"/>
            </telerik:MapShapefileLayer.Reader>
            <telerik:MapShapefileLayer.ShapeLabelStyle>
                <telerik:MapShapeLabelStyle TextColor="DarkRed"
                                               FontAttributes="Bold"
                                               FontSize="12"
                                               FontFamily="Arial"/>
            </telerik:MapShapefileLayer.ShapeLabelStyle>
        </telerik:MapShapefileLayer>
    </telerik:RadMap.Layers>
</telerik:RadMap>
```

where the `Source` and the `DataSource` of the `MapShapeReader` have to be set to a `.shp` and `.dbf` files, respectively:

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

And the used namespace:

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

Here is the result:

![.NET MAUI Map Labels Styling](https://www.telerik.com/maui-ui/documentation/assets/c75e741a743c679bc9a435eb1ed90887/map_styling_labelsstyle.png)

## See Also

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