Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Awesome Echarts | 1,120 | 4 months ago | 4 | |||||||
Awesome list of Apache ECharts | ||||||||||
React Geo | 310 | 3 | 2 | 5 days ago | 188 | December 08, 2022 | 24 | bsd-2-clause | TypeScript | |
A set of geo related modules to use in combination with React, Ant Design and OpenLayers. | ||||||||||
Ol3echarts | 297 | 1 | 22 | 3 months ago | 11 | September 26, 2022 | 17 | other | TypeScript | |
:earth_asia: :bar_chart: ol3Echarts | a openlayers extension to echarts | ||||||||||
Geostyler | 194 | 2 | 3 | 5 days ago | 80 | July 27, 2022 | 25 | bsd-2-clause | TypeScript | |
Generic Styler for geodata | ||||||||||
React Openlayers | 153 | 12 | 3 | 4 years ago | 6 | December 27, 2019 | 16 | TypeScript | ||
OpenLayer React Components | ||||||||||
Rlayers | 132 | 4 | a day ago | 37 | March 28, 2023 | 22 | isc | TypeScript | ||
React Component Library for OpenLayers | ||||||||||
Simcoecountywebviewer | 122 | 8 hours ago | mit | JavaScript | ||||||
Web Map Viewer built with React and OpenLayers. Built for GeoServer and ArcGIS Server. | ||||||||||
React Map Components Maplibre | 72 | 13 days ago | 1 | mit | TypeScript | |||||
A react component framework for declarative GIS application development. | ||||||||||
Ol Kit | 71 | a year ago | 228 | January 31, 2022 | 7 | other | JavaScript | |||
Easy to use, open source React/Openlayers geospatial component toolkit. | ||||||||||
Ol3 React Example | 62 | 8 years ago | mit | JavaScript | ||||||
Basic OpenLayers 3 + React example |
A minimal React wrapper of OpenLayers 3+ written in TypeScript
npm install react-openlayers --save-dev
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
Allen Kim is the creator of ngmap and ng2-map.
If you like this, you may also like geo-coder.
$ git clone https://github.com/allenhwkim/react-openlayers.git
$ cd react-openlayers
$ npm install
$ npm start
npm run
: List all available tasksnpm start
: Run app
directory for development using webpack-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 module react-openlayers.umd.js
npm run build:app
: Build app/build/app.js
for runnable examplesnpm run build
: Build all(build:ngc, build:umc, build:app, and clean:dist)