I'm trying to get this map so that it cannot be dragged or recentered
by click. But i would like it so they can zoom in and out using the +
and -. What's am I doing wrong?
function initialize() {
if (GBrowserIsCompatible()) {
point = new GLatLng('34.05049', '-116.20647')
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(point, 9, G_NORMAL_MAP);
markerOptions = { clickable:false, draggable:false }
marker = new GMarker(point, markerOptions);
map.addOverlay(marker);
// Map Controls
var ov = new GOverviewMapControl(new GSize(300,100));
map.addControl(ov);
ov.hide(true);
map.addControl(new GSmallZoomControl());
// Make Copyright Text Invisible to to Visitors [ GOOGLE -
WRAP THE TEXT OR LIMIT HOW MUCH TEXT THERE IS ]
map_canvas.firstChild.nextSibling.style.display = "none";
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---