New to Telerik UI for Blazor? Download free 30-day trial

Shape Layer

The shape layer provides binding to GeoJSON data and renders the specified geospatial objects.

Telerik Map supports all Geometry and Feature Objects, as well as the Geometry and Feature Collections from the GeoJSON Specification (which could be found at

To configure a Map Layer of type Shape:

  1. Add the TelerikMap tag.
  2. Set the Type parameter of the MapLayer to Shape.
  3. Set the Data parameter.
  4. Add the MapLayerShapeSettingsStyle tag inside MapLayerShapeSettings.

The following example demonstrates how to configure the Map Shape Layer.

The Map Shape Layer configuration.

@* This code snippet showcases an example of a Shape Layer configuration. *@

@using System.Net

<TelerikMap Center="@Center"
        <MapLayer Type="@MapLayersType.Shape"
                    <MapLayerShapeSettingsStyleFill Color="#0000ff" Opacity="0.5"></MapLayerShapeSettingsStyleFill>
                    <MapLayerShapeSettingsStyleStroke Color="#ffffff"></MapLayerShapeSettingsStyleStroke>

        <MapLayer Type="@MapLayersType.Marker"

@code {
    public double[] Center { get; set; } = new double[] { 30.268107, -97.744821 };

    public string WorldData { get; set; } = new WebClient().DownloadString("");

    public List<MarkerModel> MarkerData1 { get; set; } = new List<MarkerModel>()
        new MarkerModel()
            LatLng = new double[] { 30.268107, -97.744821 },
            Title = "Austin, TX"

    public class MarkerModel
        public double[] LatLng { get; set; }
        public string Title { get; set; }

The result from the above code snippet.

Blazor Map Shape Layer

In this article