/lightning-maps-react

Lightweight slippy map renderer for react

Primary LanguageJavaScriptMIT LicenseMIT

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

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>
    );
  }
}