New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Tile Layers

  • Demo Configurator
Map Tile Service:OpenStreetMap

RadMap lets you load maps from different Web Map Tile Services by using a MapLayer with Type=Tile. This demo shows a sample configuration for a few free providers that you can see in the code-behind. You can switch between the different map providers through the Map Tile Service dropdown.

The main properties you need to set for the MapLayer are:

  • Type should be set to Tile
  • UrlTemplate should link the desired service in the proper format. You can find examples in the Value properties of the Map Tile Service dropdown.
  • The Attribution property is used to provide a copyright notice about the map service owners.

You can find more details on the configuration options of the map layer in the Tile Layers help article.

The services used to provide the maps must conform to the OSGeo specifications. You can read more about them in the following resources:

Important: to use the Bing provider, you need a valid key from Microsoft. The one used for this demo is valid only for the Telerik domain. Instructions on obtaining one for your application are provided in the Create a Bing Map key article from Microsoft.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ Page Title="" Language="C#"  AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.Map.TileLayers.DefaultCS" %>

<!DOCTYPE html>
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-auto">
        <telerik:RadMap RenderMode="Lightweight" runat="server" ID="RadMap1" Zoom="4" Width="100%" Height="500">
            <CenterSettings Latitude="39.639537564366705" Longitude="-92.548828125" />
                <TileSettings Subdomains="a,b,c" />

    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
            <telerik:AjaxSetting AjaxControlID="serviceDDList">
                    <telerik:AjaxUpdatedControl ControlID="RadMap1" LoadingPanelID="RadAjaxLoadingPanel1" />
    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1"></telerik:RadAjaxLoadingPanel>

    <qsf:ConfiguratorPanel ID="demoConfigurator" runat="server">
                <qsf:ConfiguratorColumn ID="ConfiguratorColumn1" runat="server" Size="Wide">
                    <qsf:DropDownList runat="server" ID="serviceDDList" AutoPostBack="true" Label=" Map Tile Service:">
                            <telerik:DropDownListItem Text="OpenStreetMap" Value="https://#= subdomain zoom #/#= x #/#= y #.png" Selected="true" />
                            <telerik:DropDownListItem Text="OpenCycleMap" Value="http://#= subdomain zoom #/#= x #/#= y #.png" />
                            <telerik:DropDownListItem Text="ThunderForest" Value="https://#= subdomain zoom #/#= x #/#= y #.png" />
                            <telerik:DropDownListItem Text="Bing" Value="Bing" />

Support & Learning Resources

Find Assistance