Hello!

I use google maps in tabs so i resize it. But... but does my map not
center to my marker after resize...

This is my cod, please help me.

        function initialize() {

    var latlng = new google.maps.LatLng(34.728502, 33.132212);
    var myOptions = {
        zoom: 8,
        center: latlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new
google.maps.Map(document.getElementById("googleMap"), myOptions);
    var marker = new google.maps.Marker({
        position: latlng,
        map: map,
        title: "Hello World!"
    });

}

$(document).ready(function () {

    initialize();



    $('.t4').bind("click", function () {

        var map = document.getElementById("googleMap");
        google.maps.event.trigger(map, 'resize');


    });

});

-- 
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