And*_*ree 1 javascript bing-maps
我需要通过在Bing Maps API v8中滚动来禁用缩放,但保留缩放按钮.
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.compact,
showZoomButtons: true
});
Run Code Online (Sandbox Code Playgroud)
有什么办法,如何启用按钮和禁用缩放滚动?
这只是上周加入V8对照的实验分支.要使用此功能,首先需要将"&branch = experimental"添加到地图脚本URL.然后,您可以添加disableScrollWheelZoom: true为地图选项.这将在月底附近合并到主发行分支中.