I am learning Leaflet. I want to create a function that will request WMS feature info when the map is clicked. And I want to do this for different maps, each with their WMS layers.
I imagine I will have to create a function that takes wms_url
and map_object
as parameters in the function in map.on('click', function)
. But I don't know how to pass parameters to the function in .on()
. It seems .on
automatically passes event object as a parameter to the function, and I don't see how to add other parameters.