0.1.0 • Published 7 years ago
react-openlayer v0.1.0
react-openlayer
A minimal React wrapper of OpenLayer 3+ written in TypeScript
The simplese example(Not very useful though)
<Map></Map>
Example
<Map>
<Layers> <!-- TODO: layers in lower-case -->
<layer.Tile source={new ol.source.OSM()} />
</Layers>
<Controls></Controls>
<Interactions></Interactions>
<Overlays></Overlays>
</Map>
It strictly follows OpenLayer 3+ API documention
About Author
Allen Kim is the creator of ngmap and ng2-map.
To start
$ git clone https://github.com/allenhwkim/react-openlayer.git
$ cd react-openlayer
$ npm install
$ npm start
List of available npm tasks
npm run
: List all available tasksnpm start
: Runapp
directory for development usingwebpack-dev-server
with port 9001npm run clean
: Remove dist foldernpm run clean:dist
: Clean up unnecessary dist folder within dist and app directorynpm run build:umd
: Build UMD modulereact-openlayer.umd.js
npm run build:app
: Buildapp/build/app.js
for runnable examplesnpm run build
: Build all(build:ngc, build:umc, build:app, and clean:dist)