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

How to create a custom search panel

$
0
0

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

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

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.

 

 

Question Comments

Added By: KoenVerbeeck at: 8/6/2014 5:03:41 AM    

Hi,
Cannot make this work.. Lot of undefined classes, for example InformationLayer is not known..
I added using DevExpress.XtraMap + referenced the XtraMap assembly..
What is missing?
Regards,
Koen

Added By: KoenVerbeeck at: 8/6/2014 5:05:38 AM    

PS: tried to download the example but cannot open a dxsample file..

Added By: John (DevExpress Support) at: 8/6/2014 11:39:33 PM    [Posted by KoenVerbeeck in Using MapControl]
Cannot make the example E5084 work.. is that because i am using 13.1.. not in a hurry at the moment to migrate to 13.2Added By: John (DevExpress Support) at: 8/6/2014 11:41:10 PM    Yes, the InformationLayer object and some other functionality used in this demo was introduced in version 13.2 and not avaliable in previous versions.

Viewing all articles
Browse latest Browse all 7205

Trending Articles



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