JSFiddle - React, Tailwind, and code Playground
by alrick
HTML
<script src="https://api.geo.admin.ch/loader.js"></script>
<div id="mymap1" style="width:95%;height:650px;border:1px solid grey;padding: 0 0 0 0;margin:10px !important;"></div>
JavaScript
jQuery(function () {
var geo = new GeoAdmin.API();
geo.createMap({
div: "mymap1",
easting: 720000,
northing: 90000,
layers: 'ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill',
});
//geo.highlightFeatures('ch.swisstopo.swissboundaries3d-kanton-flaeche.fill', [1, 2, 3]);
});