Socket
Socket
Sign inDemoInstall

@inlog/inlog-maps

Package Overview
Dependencies
188
Maintainers
3
Versions
132
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @inlog/inlog-maps

A library for using generic layer maps


Version published
Weekly downloads
116
increased by1557.14%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

@inlog/inlog-maps

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.

Keywords

FAQs

Last updated on 12 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc