wpf-devexpress-dot-xpf-dot-map-278e6b07.md
Provides the search options using the Open Street Map service.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public class OsmSearchDataProvider :
WebInformationDataProvider<XmlProvidedEventArgs>,
ISearchPanelRequestSender
Public Class OsmSearchDataProvider
Inherits WebInformationDataProvider(Of XmlProvidedEventArgs)
Implements ISearchPanelRequestSender
This example demonstrates how to add an image layer displaying map tiles from the OSM service and an information layer that searches for a place on the map using the OSM search service. It uses the following classes:
| Class | Description |
|---|---|
| ImageLayer | Displays map images obtained from map image data providers. |
| OpenStreetMapDataProvider | The class that loads map images from a web resource that provides data in the OpenStreetMap format. |
| InformationLayer | A layer that is used to display additional information above the map. |
| OsmSearchDataProvider | Provides the search options using the Open Street Map service. |
<dxm:MapControl>
<dxm:ImageLayer>
<dxm:OpenStreetMapDataProvider />
</dxm:ImageLayer>
<dxm:InformationLayer>
<dxm:OsmSearchDataProvider />
</dxm:InformationLayer>
</dxm:MapControl>
Object DispatcherObject DependencyObject Freezable MapDependencyObject InformationDataProviderBase WebInformationDataProvider<DevExpress.Map.Native.XmlProvidedEventArgs> OsmSearchDataProvider
See Also