I need to disable zooming by scroll in Bing Maps API v8, but keep the zooming buttons.
map = new Microsoft.Maps.Map(mapPlaceholderElement,
{
credentials: options.credentials,
disableZooming: true, //If this is true, the showZoomButtons is not applied
mapTypeId: Microsoft.Maps.MapTypeId.road,
navigationBarMode: Microsoft.Maps.NavigationBarModepact,
showZoomButtons: true
});
Is there any way, how to enable the buttons and disable the zoom scrolling?
I need to disable zooming by scroll in Bing Maps API v8, but keep the zooming buttons.
map = new Microsoft.Maps.Map(mapPlaceholderElement,
{
credentials: options.credentials,
disableZooming: true, //If this is true, the showZoomButtons is not applied
mapTypeId: Microsoft.Maps.MapTypeId.road,
navigationBarMode: Microsoft.Maps.NavigationBarMode.pact,
showZoomButtons: true
});
Is there any way, how to enable the buttons and disable the zoom scrolling?
Share Improve this question asked May 30, 2016 at 7:22 AndreeAndree 1,1993 gold badges17 silver badges32 bronze badges2 Answers
Reset to default 5This was just added to the experimental branch of the V8 control last week. To use this you first need to add "&branch=experimental" to the map script URL. You can then add disableScrollWheelZoom: true
as a map option. This will be merged into the main release branch near the end of the month.
This is no longer experimental; It is released, and documented.
disableScrollWheelZoom: true
See the docs here: MapOptions Object
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745287783a4620666.html
评论列表(0条)