我剛剛從Ionic 2 beta
升級到rc3
。爲了消除編譯錯誤,我將Google Maps實施更改爲使用Ionic native api。這固定了我的彙編錯誤,但我看到Ionic native api有侷限性。例如,谷歌API中沒有fitBounds
函數。Googe Maps:我必須使用Ionic Native嗎?
問題
是否有可能使用Ionic 2 rc3
使用谷歌API而不是直接的Ionic native API?
如果是這樣,我應該如何配置我的應用程序使用API?
或者,有沒有什麼原因可以讓我直接使用Ionic native api來直接訪問Google Googles?
感謝
的package.json
"dependencies": {
"@angular/common": "2.1.1",
"@angular/compiler": "2.1.1",
"@angular/compiler-cli": "2.1.1",
"@angular/core": "2.1.1",
"@angular/forms": "2.1.1",
"@angular/http": "2.1.1",
"@angular/platform-browser": "2.1.1",
"@angular/platform-browser-dynamic": "2.1.1",
"@angular/platform-server": "2.1.1",
"@ionic/storage": "1.1.6",
"@types/google-maps": "^3.2.0",
"@types/meteor": "^1.3.31",
"@types/underscore": "^1.7.36",
"accounts-base-client-side": "^0.1.1",
"accounts-phone": "0.0.1",
"angular2-moment": "^1.0.0-beta.6",
"babel-runtime": "^6.18.0",
"google-maps": "^3.2.1",
"ionic-angular": "2.0.0-rc.3",
"ionic-native": "2.2.3",
"ionicons": "3.0.0",
"meteor-client-side": "^1.3.5",
"meteor-node-stubs": "^0.2.4",
"meteor-rxjs": "^0.4.5",
"meteor-typings": "^1.3.1",
"moment": "^2.15.2",
"rxjs": "^5.0.0-beta.12",
"zone.js": "0.6.26"
},