<script type="text/javascript">
//<![CDATA[
var map;
function loaddata() {
if (GBrowserIsCompatible()) {
var map =new
GMap2(document.getElementById("map"));
gdir = new GDirections(map,
document.getElementById("directions"));
// define the maptype
var
maptype=map.addMapType(G_DEFAULT_MAP_TYPES);
// set center
map.setCenter (new GLatLng (51.125544,
4.32033), 7, maptype);
// create a zoom control & assign to map
map.addControl(new
GLargeMapControl3D());
// enable zooming
map.enableScrollWheelZoom();
// positions the Maptype control buttons
var topRight = new
GControlPosition(G_ANCHOR_TOP_RIGHT, new
GSize(10,10));
map.addControl(new GMapTypeControl(),
topRight);
}// end browsercomptabile
} // end function
function setDirections(fromAddress, toAddress, locale) {
gdir.load("from: " + fromAddress + " to: " +
toAddress,
{ "locale": locale});
} // end setDirections
....
--
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.