Lightweight slippy map renderer for react
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
examples
src
.babelrc
.editorconfig
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
commitlint.config.js
package.json
webpack.config.js
yarn.lock

README.md

Lightning Maps React (Alpha release)

Npm Version Build Status License Downloads

React wrapper for lightning-maps-react. - A lightweight, dependency-free slippy map renderer.

Heavily inspired by Pigeon Maps and Leaflet, but with slightly different goals in mind:

Demo

Live Demo

Installation & Usage

yarn add lightning-maps-react

Include the Component

import React from 'react'
import { Map, Marker } from 'lightning-maps-react'

class Component extends React.Component {

  render() {
    return (
        <Map center={[38.865, -77.200]} zoom={12}>
            <Marker position={[38.912, -77.240]} color="red" />
        </Map>
    );
  }
}