lightning-maps-react

0.0.37 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i lightning-maps-react

Weekly Downloads

34

Version

0.0.37

License

none

Unpacked Size

89.1 kB

Total Files

17

Last publish

Collaborators

  • thecodemonkey