On 24 January 2013 09:42, Pil <wolf...@gmail.com> wrote:
>
> This looks good because the map will be resized on the right hand side
> while the left (south-east) bounds of the map won't change. So let's
> try it the other way round
>
> http://www.wolfpil.de/v3/west-resize-test.html
>
> In this example you'll notice that the map behaviour is completely
> different: The map will be resized on the left while the right (north-
> east) bounds will be changed!
>
> This is stuttering, jumping behaviour because the center of the map
> will also be changed and the map bounds will be extended to the east
> although only the west bounds should be extended.
>
> So my question is: How to resize the map smoothly in every case?

In my copy of Firefox, there is no smooth resizing: it happens all at
once, and the centre point jumps to the left (the middle of the new
size). You may be interested in
http://acleach.me.uk/gmaps/v3/map-offsetcentre.htm which recalculates
the true centre-point [which the API needs] from the apparent
centre-point [where the user is looking as the left edge is moved].
It's not quite the same as yours, but the calculations may be useful.

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to