openlayers-3 in node.js app?

旧街凉风 提交于 2019-12-05 14:24:49

You can't use OpenLayers 3 in purely Node context (but it's possible with Browserify/WebPack for client side use)

You can always stub window and other objects in Node but stub is for tests... It's also possible to run OpenLayers 3 with PhantomJS (headless browser).

I'm not aware OpenLayers was designed for other uses than browser.

To get more insight, you should post your question on the OpenLayers 3 dev list to confirm.

Do not duplicate exactly your StackOverflow question! You'd better ask something like "Is openlayers3 designed to only be used in the browser?" as the OpenLayers dev list is really for dev question and not about classic library usage/simple assistance nowadays.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!