101
rated 0 times
[
105]
[
4]
/ answers: 1 / hits: 7732
/ 8 Years ago, sat, march 5, 2016, 12:00:00
I make some circles in JS
as follow:
L.circle(
[46.765735535841024, 23.58344078063965], 5, {
color: blue
}).addTo(map).bindPopup(Description: This is my description);
I want to replace that bindPopup
with a function. When I click the circle, instead of my description display, I want to run a function, for example I made this function:
function circleClick() {
// my implementations;
}
Would someone tell me how could I do this possible?
More From » leaflet