Back to Devexpress

OsmGeocodeDataProvider Class

wpf-devexpress-dot-xpf-dot-map-140871b0.md

latest2.9 KB
Original Source

OsmGeocodeDataProvider Class

Provides the capability to obtain geocode data from the Open Street Map service.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public class OsmGeocodeDataProvider :
    WebInformationDataProvider<XmlProvidedEventArgs>,
    IMouseClickRequestSender
vb
Public Class OsmGeocodeDataProvider
    Inherits WebInformationDataProvider(Of XmlProvidedEventArgs)
    Implements IMouseClickRequestSender

Example

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:

ClassDescription
ImageLayerDisplays map images obtained from map image data providers.
OpenStreetMapDataProviderThe class that loads map images from a web resource that provides data in the OpenStreetMap format.
InformationLayerA layer that is used to display additional information above the map.
OsmGeocodeDataProviderProvides the capability to obtain geocode data from the Open Street Map service.
xaml
<dxm:MapControl>
    <dxm:ImageLayer>
        <dxm:OpenStreetMapDataProvider />
    </dxm:ImageLayer>
    <dxm:InformationLayer>
        <dxm:OsmGeocodeDataProvider />
    </dxm:InformationLayer>
</dxm:MapControl>

Implements

ISupportWebRequest

IMouseClickRequestSender

Inheritance

Object DispatcherObject DependencyObject Freezable MapDependencyObject InformationDataProviderBase WebInformationDataProvider<DevExpress.Map.Native.XmlProvidedEventArgs> OsmGeocodeDataProvider

See Also

OsmGeocodeDataProvider Members

DevExpress.Xpf.Map Namespace