ezerway-maps

0.0.5 • Public • Published

ezerway-maps

A maps wrapper component.

Includes:

Installation

npm i ezerway-maps -S
// or
yarn add ezerway-maps --save

Usage

...
import Maps from 'ezerway-maps';

const places = [
    [
        {longitude: -71.254028, latitude: 46.829853, title: 'Quebec City'},
        {longitude: -70.15268, latitude: 47.654, title: 'La Malbaie'},
    ]
];

const config = {
    api_key: '', // google api key
    viewport: { // default viewport for leaflet map
        latitude: 0,
        longitude: 0
    },
    accessToken: '' mapbox access token
};

...
render() {
    return (
        <Maps isEnableGoogleMap={true} places={places} config={config} />
    )
}

Good luck :)

Readme

Keywords

Package Sidebar

Install

npm i ezerway-maps

Weekly Downloads

4

Version

0.0.5

License

ISC

Unpacked Size

1.28 MB

Total Files

6

Last publish

Collaborators

  • ezerway