ezerway-maps
v0.0.5
Published
A wrapper maps component.
Downloads
2
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} />
)
}