문제

I'm looking for an InfoWindow replacement for Google Maps v3. I want to use it for popping up on marker mouseover. The standard InfoWindow is wholly unusable because it pans and makes itself a nuisance. Google Maps v2 had the excellent GxMarker (doesn't work with the new API): http://code.toeat.com/gxmarker.html

Does anyone know of a similar plugin for Google Maps v3, or other ways to work around the bossy behaviour of InfoWindow?

도움이 되었습니까?

해결책

In the InfoWindow options you can disable the panning by setting disableAutoPan to be true, you can read more on the reference page.

But there is also a InfoBox utility library that can be found here

다른 팁

http://econym.org.uk/gmap/ebubble.htm was what I used for V2 and when you glance at the code you can see it's fairly simply and may work with V3 if altered slightly.

Hope it helps.

var infowindow2 = new google.maps.InfoWindow({
    disableAutoPan: true
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top