0.2.4 • Published 2 years ago

@nappr/map v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NAPPR MAP

Leaflet Interactive React Map

Install

yarn add @nappr/map

Usage

import { MapComponent } from '@nappr/map';
import { AttributionControl } from 'react-leaflet';

<div
  style={{
    zIndex: 1000,
    position: 'absolute',
    top: 0,
    right: 0,
    bottom: 0,
    right: 0,
  }}>
  <MapComponent
    layers=""
    tilesURL=""
    onChange={() => {}}
    bounds={{
      southWest: { lat: 0.0373687744140625, lng: 0.9693903923034668 },
      northEast: { lat: -1.0303115844726562, lng: 0.018140316009521484 },
    }}
    center={{ lat: 0, lng: 0 }}
    zoom={{ min: 0, max: 13, current: 8 }}>
    <AttributionControl
      position="bottomleft"
      prefix={`Smart Maps | ${title} v${version}`}
    />
  </MapComponent>
</div>;
0.2.1

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.4

2 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago