Btw cause i forgot to mention it, the documentation claims that the
developer should trigger the map resize manually.

"Developers should trigger this event on the map when the div changes size:
google.maps.event.trigger<http://code.google.com/apis/maps/documentation/javascript/reference.html#event>(map,
'resize')"

On Tue, Jun 15, 2010 at 12:00 PM, Kurt Agius <[email protected]> wrote:

> Hi Chad,
>
> Apparently its not because i just need to do it... I'm using firefox 3.6.3
> and i cause the majority of developers are using that version so maybe it
> should be double checked...
>
>
> On Fri, Jun 11, 2010 at 9:05 PM, Chad Killingsworth <
> [email protected]> wrote:
>
>> That should have been the default behavior . . . you shouldn't have
>> had to do that.
>>
>> Chad Killingsworth
>>
>> On Jun 11, 7:36 am, Kurt Agius <[email protected]> wrote:
>> > Cheers susannah & all the others who tried to help.
>> > Infact i just solved it by detecting the resize event of the window and
>> then
>> > triggering the resize event of my map, cheers :)
>> >
>> > On Fri, Jun 11, 2010 at 3:10 AM, Susannah (Google Employee) <
>> >
>> >
>> >
>> > [email protected]> wrote:
>> > > Divs do not have a resize event - only the window does.
>> >
>> > > -Susannah
>> >
>> > > On Jun 10, 6:44 pm, Kurteknikk <[email protected]> wrote:
>> > > > Hi friends,
>> >
>> > > > I'm using google maps api v3 and i'm trying to listen for the resize
>> > > > event but i just can't get it working. Is this code correct ? Btw
>> > > > mapCanvas is the real div's name so that is 100% correct. And map
>> > > > obviously is a public variable containing the current map.
>> >
>> > > > This is the code i'm talking about:
>> >
>> > > >  //Trigger the resize event when map's div is resized
>> > > >     var mapDiv = document.getElementById('mapCanvas');
>> > > >     google.maps.event.addDomListener(mapDiv, 'resize', function(){
>> > > >       alert('div resize');
>> > > >       google.maps.event.trigger(map,'resize');
>> > > >     });
>> >
>> > > >     google.maps.event.addListener(map, "resize", function() {
>> > > >         alert('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]<google-maps-js-api-v3%[email protected]><google-maps-js-api-v3%2B
>> [email protected]>
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>>
>> --
>> 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]<google-maps-js-api-v3%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>>
>>
>

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