Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
/ ol-kit Public archive

Easy to use, open source React/Openlayers geospatial component toolkit.

License

Notifications You must be signed in to change notification settings

Bayer-Group/ol-kit

Repository files navigation

DEPRECATED.

THIS PROJECT IS NO LONGER BEING MAINTAINED.

It will not receive any future updates or bug fixes. If you are using it, please consider using the latest offerings from OpenLayers and other related Libraries.

ol-kit logo

npm version

An easy-to-use, open source React & OpenLayers map component toolkit.

Prebuilt Map Components

ol-kit logo

Installation

Install ol-kit and its peerDependencies

npm i @bayer/ol-kit ol react react-dom styled-components @material-ui/core @material-ui/icons @material-ui/styles --save

Getting Started

It's easy to start building map apps with ol-kit. For simple projects, the following will get you started:

import React from 'react'
import {
  Map,
  BasemapContainer,
  ContextMenu,
  Controls,
  LayerPanel,
  Popup,
  loadDataLayer
} from '@bayer/ol-kit'

class App extends React.Component {
  onMapInit = async map => {
    console.log('we got a map!', ma