Suppressing dialog using VEMap.FindLocation

Is it possible to suppress the dialog asking the user to choose a location from the similar values to the value passed to VEMap.FindLocation

I am allowing the users to select from a drop down list from cities in Illinois, so type-Os are not a concern. For example, the user selects Chicago from the ddl, I do not want VE to ask if they mean Chicago (City), Illinois or Chicago (River), Illinois. I just want the first result to be displayed.

Thanks in advance.



Answer this question

Suppressing dialog using VEMap.FindLocation

  • kvwood

    Thank you both for your quick feedback.  This is working perfectly.
  • smozaffari

    Version 3.2 hey They snuck that one out. Explains a few outages i had on the 2nd....

    http://www.microsoft.com/downloads/details.aspx FamilyID=4d640c59-c3cc-4438-8113-5828d4a0f20a&DisplayLang=en

    onmousedown Event

    New

    VEMap.DisambiguationCallback Property

    New

    VEMap.ShowDisambiguationDialog Method

    New

    So yes Simon is correct you simply set:

    map.ShowDisambiguationDialog(false);

    John.



  • modtran

    What about

    map.ShowDisambiguationDialog(false);

    This has just been added to VE 3.2. ShowDisambiguationDialog() specifies whether the default disambiguation dialog is displayed when multiple results are returned from a location query.


  • Timwright2006

    I'm looking for similar functionality CJ but have yet to find it. I have found that if my view changes the box goes away but it still appears for 1/2 sec which is annoying.

    With version 4 being released next week I'm waiting to see what changes have been made.

    John.



  • Suppressing dialog using VEMap.FindLocation