Show a Copyright Attribution Label in RadMap
Environment
Product Version | 2025.1.211 |
Product | RadMap for WPF |
Description
The RadMap control provides the ability to display tiles from different map services via its providers. These map services require displaying copyright attribution label.
Solution
This article showcases how to display copyright attribution label for the OpenStreetMap and Azure Maps services when using the OpenStreetMapProvider
and AzureMapProvider
.
-
OpenStreetMap services and OpenStreetMapProvider
The following example showcases how to display a copyright attribution label for the OpenStreetMap services when using the
OpenStreetMapProvider
.Defining the RadMap control with an OpenStreetMapProvider
<Grid> <telerik:RadMap x:Name="map"> <telerik:RadMap.Provider> <telerik:OpenStreetMapProvider APIKey="Your API key" StandardModeUserAgent="Your custom user agent string"/> </telerik:RadMap.Provider> </telerik:RadMap> </Grid>
The OpenStreetMap Attribution Guideline states that the attribution text needs to note that the data is available under the Open DataBase License. This can be done by making the added element open their copyright article.Defining an element to display the attribution copyright label
RadMap with displayed copyright attribution label when using OpenStreetMapProvider<Grid> <Grid.Resources> <Style TargetType="telerik:MapScale"> <Setter Property="Margin" Value="0 8 20 40" /> </Style> </Grid.Resources> <telerik:RadMap x:Name="map" ZoomLevel="7" MinZoomLevel="4"> <telerik:RadMap.Provider> <telerik:OpenStreetMapProvider APIKey="Your API key" StandardModeUserAgent="Your custom user agent string"/> </telerik:RadMap.Provider> </telerik:RadMap> <Grid x:Name="CopyrightContainer" VerticalAlignment="Bottom" HorizontalAlignment="Right"> <telerik:RadHyperlinkButton NavigateUri="https://openstreetmap.org/copyright" FontSize="10" Padding="5 2 20 4" Content="© OpenStreetMap contributors" FontWeight="Bold" HorizontalAlignment="Right"/> </Grid> </Grid>
-
Azure Maps services and AzureMapProvider
The following example showcases how to display a copyright attribution label for the Azure Maps services when using the
AzureMapProvider
.Defining the RadMap control with an AzureMapProvider
RadMap with displayed copyright attribution label when using AzureMapProvider<Grid> <Grid.Resources> <Style TargetType="telerik:MapScale"> <Setter Property="Margin" Value="0 8 20 22" /> </Style> </Grid.Resources> <telerik:RadMap x:Name="map" ZoomLevel="7" MinZoomLevel="4"> <telerik:RadMap.Provider> <telerik:AzureMapProvider SubscriptionKey="Your API key"/> </telerik:RadMap.Provider> </telerik:RadMap> <Grid x:Name="CopyrightContainer" VerticalAlignment="Bottom" HorizontalAlignment="Right"> <telerik:Label Content="©2025 OSM ©2025 Microsoft Azure Maps" FontSize="10" Padding="5 2 20 4" FontWeight="Bold" HorizontalAlignment="Right"/> </Grid> </Grid>
The text used for the copyright attribution label is exemplary. For an accurate copyright attribution label, refer to the appropriate service copyright article of the provider that you are using.