Hi, i'm using gmap api to display a map with a route on it. I'm using
DirectionsRenderer().
The problem is i cannot disable the mouse wheel zoom.
I have tried using map.disableScrollWheelZoom();
but it doesn't seem to do anything.
Here is the basic code that i'm using:
var myOptions = {
zoom: 5,
center: location1,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
directionsDisplay.setMap(map);
Do i need to add it in the myOptions array?
I'm referencing this js file: http://maps.google.com/maps/api/js?sensor=true
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.