Hi,

I have some weird behaviour where by my map will momentarily show the
initial location the map was setup with between zoom steps.

So in my map constructor I have:

var point = new google.maps.LatLng(50.7506,-1.92929);
this._map = new google.maps.Map(this.el.dom,{
         zoom: 8,
        center: point,
        mapTypeId: google.maps.MapTypeId.ROADMAP
});

I then load a bunch of markers onto the map and reset the map which
works as expected:

resetMap: function() {
        var bounds = new google.maps.LatLngBounds();
for(var untID in this._units) {
                                if (untID!='remove'&&untID!='indexOf') {
                                        if(this._units[untID].getVisible())
                                                
bounds.extend(this._units[untID].getPosition());
                                }
                        }

this._map.fitBounds(bounds);

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