cordova插件和Web API之间的区别?

时间:2018-01-08 16:36:42

标签: google-maps cordova cordova-plugins

我想知道Google Maps Cordova插件与Google的网络API有什么区别?

由于 YMonnier

1 个答案:

答案 0 :(得分:2)

该插件显示使用Google Maps原生SDK的原生视图,Web API在Cordova WebView中以与在任何网站上相同的方式显示地图。

该插件应该更高效地显示地图,特别是用于手势(移动地图,缩放等),但由于它是本机视图,因此难以集成到应用程序中。 (这种情况多年来有所改善)

The oficial readme says:
How different between Google Maps JavaScript API v3?
This plugin displays the map view of native(Java and Objective-C) features, which is faster than Google Maps JavaScript API v3.

And the native map view works even if the device is offline.

This plugin provides the features of the native map view to JS developers.

You can write your code similar like the Google Maps JavaScript API v3.

该插件还支持离线地图和3D视图

https://github.com/mapsplugin/cordova-plugin-googlemaps#how-different-between-google-maps-javascript-api-v3