Why does the infobox in my MSN Map not close?

Posted by meder on Stack Overflow See other posts from Stack Overflow or by meder
Published on 2011-01-12T22:34:37Z Indexed on 2011/01/17 7:53 UTC
Read the original article Hit count: 200

Filed under:
|

I'm having a bit of trouble with this map, invoked by the "View our interactive map" button in the middle of the content area.

If you double click a point such as 8 which causes a zoom and then afterwards it causes the info box to appear, the hide logic is wrong.

If you try to close the x, it will fail. This is probably because the user clicked too fast and the map thinks its in zoom mode when infact it should be in info box mode.

Has anyone ran into this issue before? Looks like I have to mess around with window.ero.hide and some other functions.. because map.HideInfoBox doesn't hide the map.

EDIT: The script used is here. I did not code it, but the relevant bit has:

onclick="EnableEroHide();map.HideInfoBox();changePin();return false;" 

The map.HideInfoBox() should hide the info box.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about bing-maps