Exactly how you would do this will depend very much on exactly what
you're wanting to do, but the actual moving of the map is relatively
simple. Just write a function like this:
function moveMap(lat,lng,zoom,mapType){
map.setCenter(new GLatLng(lat,lng),zoom,mapType);
}
You can then provide the coordinates for a new center point, zoom
level, and map type. The only required arguments, though, would be
lat and lng.
Jeremy R. Geerdes
Effective website design & development
Des Moines, IA
For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
[email protected]
Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.
If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!
And check out my blog, Adventures in Web Development, at
http://jgeerdes.blogspot.com
!
On Apr 13, 2009, at 12:08 PM, webmaster wrote:
>
> Hello guys,
>
> Is is possible to add a custom control so that I can jump from a
> location (a given lat, long, center, zoom level) to another?
>
> The locations should ideally come from an array or read from a
> database,
>
> I guess I have to update the parameters of the setCenter funcion. But
> how can I do that?
>
> In one of the files I am using I have for example the following line
> that sets the location.
>
> map.setCenter(new GLatLng(35.828186,-86.065161), 14);
>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" 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-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---