Convert array of intensity points to Markers

后端 未结 1 1520
孤城傲影
孤城傲影 2021-01-25 15:18

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 l

1条回答
  •  清酒与你
    2021-01-25 16:15

    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);
        }
    

    0 讨论(0)
提交回复
热议问题