0
$.ajax({
  url: "/base_data",
  type: 'get',
  dataType: 'json',
  async: false,
  success: function(response) {
    $(response).each(function(index, value) {
      popup = L.marker([value.latitude, value.longitude]).addTo(map);
      popup.on("click", function() {
        var con = getMembers(value.id);
        // alert("CLicked"+value.id);
        // console.log(con);
        this.bindPopup(con).openPopup();
      });
    });
  },
  error: function() {

  }
});
guradio
  • 15,524
  • 4
  • 36
  • 57

0 Answers0