Chad, outstanding! From your example I see what I was doing wrong &
got my code to work correctly.
Thanks for the help,
Mike

On Dec 2, 12:15 am, Chad Killingsworth
<[email protected]> wrote:
> Here's an example. Notice that map is defined outside the initialize
> function:
>
> http://search.missouristate.edu/map/mobile/examples/panto.htm
>
> Chad Killingsworth
>
> On Dec 1, 7:52 pm, Mike <[email protected]> wrote:
>
> > Thanks for responding Esa, I tried it and it is outside the initialize
> > function, but I get a JS error is Firebug:
>
> >    map is not defined
> >    javascript:map.panTo(panPoint)()
>
> > I am going to play around with it, but if you have any quick thoughts,
> > I'd like to hear them.
>
> > Thanks again,
> > Mike
>
> > On Dec 1, 6:06 pm, Esa <[email protected]> wrote:
>
> > > Your map and panPoint must be global variables (defined outside
> > > intialize()).
>
> > >   var panPoint = new google.maps.LatLng(number, number);
>
> > > In html:
>
> > >   <a href="javascript:map.panTo(panPoint)">Pan</a>

--

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