문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top