2017-08-24 24 views
0

離子谷歌地圖組件曾經是angular2-google-maps,改名爲@agm/core最新的離子谷歌地圖組件失敗

文檔現在指定此咒語:

然而,當我運行:

ionic cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps --variable API_KEY_FOR_ANDROID="<myKey>" 

我得到這個錯誤:

Error: Failed to fetch plugin https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps via registry. 
Probably this is either a connection problem, or plugin spec is incorrect. 
Check your connection and plugin name/version/URL. 

難道我做錯了什麼,或者是否缺少組件?

謝謝。

+0

嘗試'cordova插件添加https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps - 變量API_KEY_FOR_ANDROID = yourkey --save' –

+0

可悲的是,沒有區別。 – jcsubmit

+0

你是否從命令中刪除了離子? –

回答

0

我有同樣的問題,但我創建了存儲庫的一個分支,並從那裏安裝插件,爲我工作。如果你想嘗試從我的回購安裝

$cordova plugin add https://github.com/Motoralfa/cordova-plugin-googlemaps#multiple_maps --variable API_KEY_FOR_ANDROID="..." --save 

我試過沒有Ionic命令,但我認爲它也可以工作!

+0

不幸的是,這也失敗了。也許是因爲我在蘇格蘭?我放棄了,並回到了@ agm/core。 – jcsubmit

+0

@jcsubmit請再試一次。 – wf9a5m75