我们正在使用 JavaFX 的 WebView 嵌入一个网页,我们希望使用谷歌地图的javascript API和ng-map显示地图内容。
NgMap.getMap().then(function (map) {
map.setOptions({
maxZoom: 17,
streetViewControl: true,
// liteMode: true, // that would be cool :-)
streetViewControlOptions: {
position: google.maps.ControlPosition.TOP_RIGHT },
keyboardShortcuts: false,
//... ommited for brevity
});
});
由于 WebView 不支持 WebGL ,我们需要找到一种方法来启用lite 模式(因为它可以在使用android API时)。有谁知道实现这一目标的方法?