All Projects → allenhwkim → React Openlayers

allenhwkim / React Openlayers

OpenLayer React Components

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to React Openlayers

farmOS-map
farmOS Map is an OpenLayers wrapper library designed for agricultural mapping needs. It can be used in any project that has similar requirements.
Stars: ✭ 18 (-89.35%)
Mutual labels:  map, openlayers
Ol3echarts
🌏 📊 ol3Echarts | a openlayers extension to echarts
Stars: ✭ 229 (+35.5%)
Mutual labels:  openlayers, map
Hajk
A modern, full-featured OpenLayers based map viewer and editor
Stars: ✭ 65 (-61.54%)
Mutual labels:  map, openlayers
HMap
:earth: HMap | 基于openlayers的封装组件
Stars: ✭ 64 (-62.13%)
Mutual labels:  map, openlayers
telegram-nearby-map
Discover the location of nearby Telegram users 📡🌍
Stars: ✭ 329 (+94.67%)
Mutual labels:  map, openlayers
Gwt Ol
GWT wrapper for OpenLayers 3+ using JSInterop
Stars: ✭ 57 (-66.27%)
Mutual labels:  wrapper, openlayers
Iclient Javascript
Modern GIS Web Client for JavaScript, based on Leaflet\OpenLayers\MapboxGL-JS\Classic(iClient8C), enhanced with ECharts\D3\MapV etc. Contributed by SuperMap & community.
Stars: ✭ 593 (+250.89%)
Mutual labels:  openlayers, map
Openlayers Editor
OpenLayers Editor
Stars: ✭ 138 (-18.34%)
Mutual labels:  openlayers, map
Desktop Google Keep Osx
A Super Simple Desktop Client for Mac OSX Built in Javascript and MacGap
Stars: ✭ 159 (-5.92%)
Mutual labels:  wrapper
Devmap
Карта развития веб-разработчика
Stars: ✭ 2,043 (+1108.88%)
Mutual labels:  map
Redux Data Structures
Reducer factory functions for common data structures: counters, maps, lists (queues, stacks), sets, etc.
Stars: ✭ 157 (-7.1%)
Mutual labels:  map
Zstd Rs
A rust binding for the zstd compression library.
Stars: ✭ 159 (-5.92%)
Mutual labels:  wrapper
Betterway
A RoadBook Application Using MVP
Stars: ✭ 163 (-3.55%)
Mutual labels:  map
Ol Geocoder
Geocoder Nominatim for OpenLayers
Stars: ✭ 158 (-6.51%)
Mutual labels:  openlayers
Aphotomanager
Manage local photos on Android: gallery, geotag with photomap, privacy, tags, find, sort, view, copy, send, ... .
Stars: ✭ 164 (-2.96%)
Mutual labels:  map
Py Kaldi Asr
Some simple wrappers around kaldi-asr intended to make using kaldi's (online) decoders as convenient as possible.
Stars: ✭ 156 (-7.69%)
Mutual labels:  wrapper
Itiriri
A library built for ES6 iteration protocol.
Stars: ✭ 155 (-8.28%)
Mutual labels:  map
Imageflow
A simple wrapper of TensorFlow for Converting, Importing (and Soon, Training) Images in tensorflow.
Stars: ✭ 166 (-1.78%)
Mutual labels:  wrapper
Mailchimp Api
Super-simple, minimum abstraction MailChimp API v3 wrapper, in PHP
Stars: ✭ 1,977 (+1069.82%)
Mutual labels:  wrapper
Apriltag ros
A ROS wrapper of the AprilTag 3 visual fiducial detector
Stars: ✭ 160 (-5.33%)
Mutual labels:  wrapper

react-openlayers

A minimal React wrapper of OpenLayers 3+ written in TypeScript

image

Install

npm install react-openlayers --save-dev

Usage

import {
  interaction, layer, custom, control, //name spaces
  Interactions, Overlays, Controls,     //group
  Map, Layers, Overlay, Util    //objects
} from "react-openlayers";

Example

    <Map view={{center: [0, 0], zoom: 2}} onClick={showPopup}>
      <Layers>
        <layer.Tile/>
        <layer.Vector source={markers} style={markers.style} zIndex="1" />
      </Layers>
      <Overlays>
        <Overlay 
          ref={comp => this.overlayComp = comp}
          element="#popup" />
      </Overlays>
      <Controls attribution={false} zoom={true}>
        <control.Rotate />
        <control.ScaleLine />
        <control.FullScreen />
        <control.OverviewMap />
        <control.ZoomSlider />
        <control.ZoomToExtent />
        <control.Zoom />
      </Controls>
      <Interactions>
        <interaction.Select style={selectedMarkerStyle} />
        <interaction.Draw source={markers} type='Point' />
        <interaction.Modify features={markers.features} />
      </Interactions>
    </Map>

    <custom.Popup ref={comp => this.popupComp = comp}>
    </custom.Popup>

It strictly follows OpenLayers 3+ API documention

About Author

Allen Kim is the creator of ngmap and ng2-map.

If you like this, you may also like geo-coder.

To start

$ git clone https://github.com/allenhwkim/react-openlayers.git
$ cd react-openlayers
$ npm install
$ npm start

List of available npm tasks

  • npm run : List all available tasks
  • npm start: Run app directory for development using webpack-dev-server with port 9001
  • npm run clean: Remove dist folder
  • npm run clean:dist: Clean up unnecessary dist folder within dist and app directory
  • npm run build:umd: Build UMD module react-openlayers.umd.js
  • npm run build:app: Build app/build/app.js for runnable examples
  • npm run build: Build all(build:ngc, build:umc, build:app, and clean:dist)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].