Category / Section
How to render OpenStreetMap in SfMaps?
1 min read
OpenStreetMap is a map of the entire world. The OpenStreetMap allows you to view, edit and use geographical data in a collaborative way from any place on the Earth.
You can enable this feature by setting LayerType as “OSM”.
XAML
<syncfusion:SfMap.Layers> <syncfusion:ImageryLayer LayerType="OSM"/> </syncfusion:SfMap.Layers>
Code Example
XAML
<syncfusion:SfMap> <syncfusion:SfMap.Layers> <syncfusion:ImageryLayer LayerType="OSM"/> </syncfusion:SfMap.Layers> </syncfusion:SfMap>
The following screenshot illustrates the OpenStreetMap.
Figure 1: OpenStreetMap