How do you remove the Bing Disambiguation Dialog via API call? -


I am integrating Bing map into a web page I am calling GetDirections () method of my VEMAP option and When I set the VERouteOptions.ShowDisambiguation property to the right, I call VEMap.GetDirections (). Sometimes I get the following communication:

The problem sometimes enters the other guidelines in my form, and the dialogue is going to make it right The following is done for:

  // If any inconsistency dialog exists aka "" the previous direction search is available from $ ('# myMap_veplacelistpanel'). Hide ();  

It seems to work, but it seems like a suboptimal approach is there a better way to do this?

Update: Basically I was removing the dialog. Problems come from this, so I just hide it, and who has solved the problems it has created. Since I have not accepted my own answer so far, I am changing the question to change it. Question

"post-text" itemprop = "text">

Instead of hiding with Div's CSS, you can call the following to disable the dialog:

map.ShowDisambiguationDialog (wrong);

This should solve your problem.

You can also modify the map. To disable the dialog box, find the parameter:

Map. Search (type, ou, [VEFindType.Business] type, layer [base map], startindex [for example: map.Find (empty, search, tap, tap, blue, vacuum, empty, null, false, empty, False, false, addPin);

source:


Comments