This library is a wrapper to DotAtlas
Add the package as a depedencies in your package.json
welearn-map: git@github.com:CyberCRI/welearn-map.git#latest
-
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);
We can find examples of integration in modern JS framwork