[Google Maps API v2] Re: Can't disable mouse scrolling in gmaps api
On Jun 7, 2:05 pm, Scooter <coldscoo...@hotmail.com> wrote:
> 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
That is the v3 API. This is the group for the v2 API. The v3 group is:
http://groups.google.com/group/google-maps-js-api-v3
Try searching that group for your answer (or maybe even looking at the
documentation...)
http://code.google.com/apis/maps/documentation/javascript/reference.html#MapOptions
scrollwheel boolean If false, disables scrollwheel zooming on the
map. The scrollwheel is enabled by default.
-- Larry
>
> 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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home