Installing
npm
You can install mmp package with npm:
npm install mmp --save
Then add the mmp library with d3.js to your index.html
:
<div id="map"></div>
<script src="node_modules/d3/build/d3.min.js"></script>
<script src="node_modules/mmp/build/mmp.min.js"></script>
<script>
let myMap = mmp.create("map");
</script>
CDN
You can also load it using a <script> using the unpkg CDN:
<div id="map"></div>
<script src="https://unpkg.com/d3/build/d3.min.js"></script>
<script src="https://unpkg.com/mmp/build/mmp.min.js"></script>
<script>
let myMap = mmp.create("map");
</script>