$.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() {
}
});
Monday 17 October 2016
jquery - The Issue is the click is working for the first time but not after that
Subscribe to:
Post Comments (Atom)
c++ - Does curly brackets matter for empty constructor?
Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...
-
A fair amount of the second act of The Dark Knight Rises has a class warfare plotline. This is foreshadowed in the trailers with Selina Ky...
-
How can I detect either numbers or letters in a string? I am aware you use the ASCII codes, but what functions take advantage of the...
-
I want to create an options array from a string. How can i create an array as { width : 100, height : 200 } from a string ...
No comments:
Post a Comment