0.1.0 • Published 9 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 startList of available npm tasks
npm run: List all available tasksnpm start: Runappdirectory for development usingwebpack-dev-serverwith 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.jsnpm run build:app: Buildapp/build/app.jsfor runnable examplesnpm run build: Build all(build:ngc, build:umc, build:app, and clean:dist)