@inlog/inlog-maps
TypeScript icon, indicating that this package has built-in type declarations

6.4.2 • Public • Published

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: {} // google maps options
};

const currentMap = new InlogMaps.Map;
currentMap.initialize(InlogMaps.MapType.Google, params)
    .then(() => /* Implement your methods */);

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(() => /* Implement your methods */);

See demo.js and index.html.

Use our DOCUMENTATION to find how implement the marker, polygons, polylines, circles, and others layers availables.

Readme

Keywords

Package Sidebar

Install

npm i @inlog/inlog-maps

Weekly Downloads

192

Version

6.4.2

License

MIT

Unpacked Size

4.34 MB

Total Files

267

Last publish

Collaborators

  • alexandrepatob
  • jeandro.couto
  • caroline.hoegen