0.4.0 • Published 3 years ago
welearn-map v0.4.0
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
- Get the dotatlas js file
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});
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