Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to search for a location on a map using a custom search panel

$
0
0

This example demonstrates how to find a city on a map using the Microsoft Bing Search data service.

Note that the built-in search panel is not applicable in this example, so the BingSearchDataProvider.ShowSearchPanel property is set to false.

To find a city on the map, type it in the custom search panel and click the Go button. A search location parameter is passed to the BingSearchDataProvider.Search method, and you can see a desired location on the map. Note that there are 5 overloads for the Searchmethod, depending on your search criteria.

If you run this sample as is, you will get a warning message stating that the specified Bing Maps key is invalid. To learn about how to register a Bing Maps account and create a key for it, refer to How to: Get a Bing Maps Key tutorial.



Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>