Many thanks to Larry and xelawho,

Once Larry asked me which passer I was using the fog cleared, like a numpty
I had not realised that their were 3rd party extension projects that I could
use.

and thanks xelawho for a great zoom code snippet.

Regards,

Rob

On Tue, Feb 8, 2011 at 9:00 PM, xelawho <[email protected]> wrote:

> > I've been searching these topics for a ages but I could really do with
> > being point in the right direction.
>
> you can use mouseovers with the api. here's something quite different
> but possibly useful:
> http://econym.org.uk/gmap/mouseover.htm
>
> for zooming and panning there is a handy little function:
> function centerAndZoom(line) {
>  bounds = line.getBounds();
>  map.setCenter(bounds.getCenter(map),
> map.getBoundsZoomLevel(bounds));
> }
>
> that works for lines or shapes (which are really just lines that are
> joined up and filled). You can see it in action on the two dropdown
> menus at the top here: http://www.xelawho.com/map/ (and disable it by
> checking "Disable auto-pan")
>
> hope that helps.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps API V2" 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-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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-api?hl=en.

Reply via email to