No, handt seen that indeed :)

Ok, tried implementing that, but it seems that ugly tab on top is
required? And it shows an infowindow, but when I click another marker
the window for that marker doesnt show, and when I click outside the
infowindow or somewhere else on the map, the infowindow doesnt
disappear.

here's my code, if you could look at it, that would be great! :)

    for (var i = 0; i < markersArray.length; i++) {
        var marker = markersArray[i];

        infoBubble = new InfoBubble({
            maxWidth: 300
        });


        infoBubble2 = new InfoBubble({
            map: map,
            content: '<div class="phoneytext">Some label</div>',
            position: new google.maps.LatLng(-35, 151),
            shadowStyle: 1,
            padding: 0,
            backgroundColor: 'rgb(57,57,57)',
            borderRadius: 4,
            arrowSize: 10,
            borderWidth: 1,
            borderColor: '#2c2c2c',
            disableAutoPan: true,
            hideCloseButton: true,
            arrowPosition: 30,
            backgroundClassName: 'phoney',
            arrowStyle: 2
        });
        infoBubble2.open();

        var div = document.createElement('DIV');
        div.innerHTML = 'Hello';

        google.maps.event.addListener(marker, 'click', function () {
            if (!infoBubble.isOpen()) {
                infoBubble.open(map, marker);
            }
        });



//        var infowindow = new google.maps.InfoWindow({
//            content: "holding..."
//        });
//        google.maps.event.addListener(marker, 'click', function () {
//            // where I have added .html to the marker object.
//            infowindow.setContent(this.content);
//            infowindow.open(map, this);
//        });


    }


On Oct 15, 9:06 pm, Esa <[email protected]> wrote:
> This is one examplehttp://koti.mbnet.fi/ojalesa/boundsbox/makemarker.htm

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to