Socket
Socket
Sign inDemoInstall

timeline-map

Package Overview
Dependencies
11
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    timeline-map

TimeLine Map Component from MapsForAll


Version published
Weekly downloads
45
decreased by-29.69%
Maintainers
1
Install size
1.68 MB
Created
Weekly downloads
 

Readme

Source

To add to your the timeline map component to your website (after setting up your account on maps for all):

 Browser

Import the component by adding a src tag in the header (<head>):

<script src="https://unpkg.com/timeline-map">

Create elements in page:

<div id="mapid"></div>
<div id="controlid"></div>

You can set your own ids for the elements

And then running in the script section:

<script>
  const map = new TimeLineMap('your-id-goes-here', 'mapid', 'controlid');
  map.create();
</script>

If you are using different ids, pass them here

 Node

Install the timeline map package using NPM

npm install --save timeline-map

Create elements in page:

<div id="mapid"></div>
<div id="controlid"></div>

You can set your own ids for the elements

And then running:

import {TimeLineMap} from 'timeline-map';
const map = new TimeLineMap('your-id-goes-here', 'mapid', 'controlid');
map.create();

If you are using different ids, pass them here

Keywords

FAQs

Last updated on 21 Jun 2021

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