I've created a map of Greater London with pointers in a number of
areas. I've also created a set of links that display next to the map
that when clicked will zoom into a pre-defined area like Central
London, South London, West London, etc.
I've done this by creating a number of GLatLngBounds objects which
correspond to the areas, say
var CentLon = new GLatLngBounds(new GLatLng(51.47,-0.17), new
GLatLng(51.52,-0.10));
and used
function fitMap(area) {
map.setCenter(area.getCenter(),map.getBoundsZoomLevel(area));
}
which is then called a link this this:
<a href='#' onclick='fitMap(CentLon)'>Central London</a>
With all this in mind... How do I create a link that that I can use
externally (on other websites) so that when a user lands on my website
throught this link they'll automatically be zoomed in to the Central
London area (rather than the Greater London area which is the default)?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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
-~----------~----~----~----~------~----~------~--~---