A library for using generic layer maps
Install
Install the library
npm install @inlog/inlog-maps
Using
Google
const params = {
libraries: ['drawing'],
apiKey: '<your-api-key-here>',
gestureHandling: false,
showTraffic: false,
options: {}
};
const currentMap = new InlogMaps.Map;
currentMap.initialize(InlogMaps.MapType.Google, params)
.then(() => );
Leaflet
const params = {
scriptsDependencies: [
'path/to/Leaflet.Editable.js',
'path/to/Path.Drag.js',
'path/to/leaflet-gesture-handling.js'
],
cssDependencies: [
'path/to/leaflet-gesture-handling.css'
],
gestureHandling: true
};
const currentMap = new InlogMaps.Map;
currentMap.initialize(InlogMaps.MapType.Leaflet, params)
.then(() => );
See demo.js and index.html.
Use our DOCUMENTATION to find how implement the marker, polygons, polylines, circles, and others layers availables.