我是 OpenLayers 3 的新手,我已经开始学习本教程:http://openlayers.org/workshop/index.html
正如您在上一个链接中看到的那样,指定了:
In addition, you'll need Node installed to run a development server for the OpenLayers library.
这意味着对于使用 Open Layers 3 显示 map 的每个应用程序,我还需要安装 Node JS?为什么要显示 map 我需要 Node?p>
我错过了什么吗?
最佳答案
OpenLayers 是一个 JavaScript 客户端库。 不需要服务器端来运行它。
他们使用 Node js 进行构建等,但这根本不是强制性的!
您只需使用从 openlayers 网站下载的完整版本即可编写 html/js 代码,无需任何其他工具。
关于javascript - 我需要使用 NodeJS 在页面内显示 OpenLayers 3 map 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34920359/