【发布时间】:2017-10-25 17:36:21
【问题描述】:
通过npm install openlayers(4.1.1),我可以在vuejs中正常使用openlayers,但是我们公司自定义了一些基于openlayers3.x的东西,那么我该如何使用这个自定义的openlayers呢?我直接引入这个ol的lib,什么时候用
goog.require("ol.Map")
它报告
goog 未定义的错误!
那么,有什么方法可以在 vuejs 中使用自定义 ol 吗?顶一下。
【问题讨论】:
-
有点困惑——你在使用 Google Closure 吗?
标签: node.js npm vue.js openlayers