0.0.5 • Published 4 years ago

ezerway-maps v0.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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 :)

0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago