ezerway-maps

A wrapper maps component.

Usage no npm install needed!

<script type="module">
  import ezerwayMaps from 'https://cdn.skypack.dev/ezerway-maps';
</script>

README

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