I made some markers on a map using
L.marker([42.76, 20.52], 5, {color: "blue"}).addTo(map).bindPopup("<b>Name: </b> My name<br /><b>Adress:</b> My adress<br /> <b>Description:</b>My description...").on("click", circleClick);
My circleClick function is the following:
function circleClick(e) {
app.getInfo(e.latlng.lat, e.latlng.lng);;}
I use this function to send the coordinates from JavaScript
to Java
. But now I want to add some parameters to my circleClick
function. That's not a problem, I know how to do this. But I don't know how to call the function with parameters. I tried:
L.marker([42.76, 20.52],[...]).on("click", circleClick(e, parameter1, parameter2));
but it doesn't work. Please help me, how to specify the parameters at .on("click", circleClick(...));
?