dccMike


Hi,

Is it possible to restrict the results returned by the DisambiguationDialog box ¨C I would like it to only show suggestions in Canada. Is this possible

I am currently using version 5:

http://dev.virtualearth.net/mapcontrol/v5/mapcontrol.js

Mike





Re: Restrict results returned by DisambiguationDialog

Derrick (MSFT)


You'll have to create your own disabiguation box. (Which really isn't that hard.) After that, in the VEMap.Find, make sure you pass false into the useDefaultDisambiguation parameter and a callback function. In the callback function, you'll have to filter the results and then show you own disambiguation box.

http://msdn2.microsoft.com/en-us/library/bb429645.aspx






Re: Restrict results returned by DisambiguationDialog

SoulSolutions

Mike even if you don't want to change to V6, you should update your URL format so not to be caught out. There were some articles on MSDN that had the worng format you should be using:

http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx v=5

John.