var map = L.map( 'mapid', { center: [51.505, -0.09], // Default to U.S.A minZoom: 2, zoom: 0 }); L.tileLayer( 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap', subdomains: ['a','b','c'] }).addTo(map); var markers = L.markerClusterGroup().addTo(mapid) function drawMap(){ var mymap = map; fetch(scriptRoot + "api/getCountByGPS") .then(response => { console.log(response) return response.json(); }) .then(data => { for (var i=0; i" + label + "
" + "FastaCount: " +fastaCount); // markers.addLayer(marker) }} */ // Reload the map map.invalidateSize(); // document.getElementById("map_view").classList.add("invisible"); // document.getElementById("loader").classList.add("invisible"); }