开发者

Why does the infobox in my MSN Map not close?

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.


The issue was that the hide function was being overridden by an empty function(){return;}. I had to save a reference to the hide function and invoke it manually.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜