javascript - 我需要使用 NodeJS 在页面内显示 OpenLayers 3 map 吗?

标签 javascript node.js openlayers-3

我是 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?

我错过了什么吗?

最佳答案

OpenLayers 是一个 JavaScript 客户端库。 不需要服务器端来运行它。

他们使用 Node js 进行构建等,但这根本不是强制性的!

您只需使用从 openlayers 网站下载的完整版本即可编写 html/js 代码,无需任何其他工具。

关于javascript - 我需要使用 NodeJS 在页面内显示 OpenLayers 3 map 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34920359/

相关文章:

javascript - mongodb 在 Node 中使用 mongoose 想要在查询中使用 or 和

javascript - 如何在 Open Layers 3 中动态获取选定的要素属性?

node.js - 使用 NodeJS 查询 CosmosDB

javascript - Stripe webhooks 返回 400 响应

javascript - 如何循环遍历mysql数据库中的消息并正确显示它们

javascript - 通过按钮取消/激活 getfeature-request

javascript - 开放层 : How can I remove a feature?

javascript - 使用 jQuery 将超大的 Div 元素居中

javascript - 如何动态地创建一个对象?

javascript - 使用jQuery取消选中,但复选框仍被视为 'successful control'并提交