0
我試圖做兩個:無法在流星使用谷歌 「鄰居」
Template.unitMapView.onRendered(function() { GoogleMaps.load({ v: "3", libraries: "geometry, places"}); });
和
Template.unitMapView.onCreated(function() {
GoogleMaps.load({ v: "3", libraries: "geometry, places"});
});
但還是我正在爲 「google.maps.places」, 「不確定」在我的控制檯中,我錯過了什麼?
負載是異步的。您可以在啓動時加載所需內容,並在適當的情況下使用被動的'GoogleMaps.loaded()'反應函數,假設您正在使用'dburles:google-maps'。這些都在文檔中。 – MasterAM