2016-05-16 15 views
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」, 「不確定」在我的控制檯中,我錯過了什麼?

+1

負載是異步的。您可以在啓動時加載所需內容,並在適當的情況下使用被動的'GoogleMaps.loaded()'反應函數,假設您正在使用'dburles:google-maps'。這些都在文檔中。 – MasterAM

回答

0

發現錯誤,我使用GoogleMaps.load(),也從其他文件。除去這個,我得到了地方圖書館。