Skip to content Skip to sidebar Skip to footer

Convert Array Of Intensity Points To Markers

So I have this code. Heat map has already been added but now I need to add the markers for each of the place that has intensity point. I have the latitude and longitude and also i

Solution 1:

A straightforward way of adding multiple markers:

for (var i = 0; i < quakePoints.length; i++) {
        marker = new L.marker(quakePoints[i])
            .bindPopup(quakepoints[i][2])
            .addTo(map);
    }

Post a Comment for "Convert Array Of Intensity Points To Markers"