1
我正在啓動一個旨在繪製和顯示地圖的ember.js應用程序。import ember.js中的openlayers3
我使用ember.js v1.11.0和OL3 v3.4.0
我設法通過亭子安裝OL3和使用導入Brocfile.js:
app.import('bower_components/ol3/build/ol.js');
app.import('bower_components/ol3/css/ol.css');
我可以使用它以及我的觀點沒有問題等。我想如果可能的是擺脫服務器錯誤:
views/map.js: line 6, col 22, 'ol' is not defined.
views/map.js: line 7, col 19, 'ol' is not defined.
views/map.js: line 10, col 21, 'ol' is not defined.
views/map.js: line 11, col 19, 'ol' is not defined.
views/map.js: line 14, col 19, 'ol' is not defined.
views/map.js: line 17, col 17, 'ol' is not defined.
如果可能的話在我的Intellij IDEA中使自動完成(使其識別ol庫)
如果有人能幫我一把,那owuld會被大大降低。