0.4.0 • Published 3 years ago

welearn-map v0.4.0

Weekly downloads
28
License
MIT
Repository
github
Last release
3 years ago

welearn-map

This library is a wrapper to DotAtlas

Installation

Add the package as a depedencies in your package.json

welearn-map: git@github.com:CyberCRI/welearn-map.git#latest

Integration

  1. Get the dotatlas js file
  2. Initialize the map

    <div id="atlas" style="width:1000px; height:400px;"></div>      
    import { setupMapView } from '../../../../src/renderer';
    import '../assets/dotatlas';
    const atlasEl = document.getElementById('atlas');
    setupMapView({element: atlasEl});
  3. Listen to click event on the map for getting resources in selection

    window.addEventListener('searchMap', this.yourCallBack);

Examples

We can find examples of integration in modern JS framwork

0.4.0

3 years ago

0.3.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago