timeline-map

2.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i timeline-map

Weekly Downloads

63

Version

2.1.1

License

MIT

Unpacked Size

175 kB

Total Files

46

Last publish

Collaborators

  • mapsforall