When you change the map size, it does exactly what you mentioned - it
extends the canvas. If you want the center point to be reset, you'll
need to get the map center before you resize, then resize the map and
trigger the resize event, then reset the map center to your previous
center point.

Chad Killingsworth

On Jun 6, 7:18 am, MacGoose <[email protected]> wrote:
> Hi and thanx for you time.
>
> But I believe that an event trigger like this makes me able to handle
> on the resize.  But what I want is the API to update its canvas data.
>
> When I resize the map canvas from 100% to 70% it seems like the API
> still thinks it has a size of 70% because for example the center of
> the map is still in the "old" 70% center, and not the new 100% center.
>
> So is there a way to explicitly tell the Maps API that it need to
> refresh its size data because its canvas has resized.  Becasue I don't
> think the API does this correctly as it is now.  I could fix up an
> example but I don't have the time right now.  If things are unclear I
> can do it later...
>
> , MacGoose

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