https://github.com/mmomtchev/ol-ssr
Simple wrapper around openlayers for Server-Side Rendering in Node.js
https://github.com/mmomtchev/ol-ssr
Last synced: 4 months ago
JSON representation
Simple wrapper around openlayers for Server-Side Rendering in Node.js
- Host: GitHub
- URL: https://github.com/mmomtchev/ol-ssr
- Owner: mmomtchev
- Created: 2021-04-12T16:25:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-19T16:47:33.000Z (over 4 years ago)
- Last Synced: 2025-06-13T04:07:12.093Z (4 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ol-ssr
This is a simple wrapper around *OpenLayers* using a monkey-patched jsdom that allows Server-Side Rendering in Node.js
It is meant to be used as a plugin for [rlayers](https://www.npmjs.com/package/rlayers)
A stand-alone test example is included in `render.test.js` and can be used as an inspiration for your own implementation.
If you want to run it, there is a transpiled version in the NPM package: `index.cjs`
## Usage
```
# Once you have rlayers installed
npm install --save ol-ssr jsdom canvas
```It will enable the `RSSRender()` call in rlayers