Closed lucasprograms closed 4 years ago
Thanks for the suggestion!
The way you have this:
cb(e, {
layer,
would break existing use of the function. But if you change it to:
cb({
event: e,
layer,
then it looks good.
Thanks for the PR!
hey @stevage, it's Lucas from vetro fiber map
Loving this lib so far. I have forked the lib to add functionality to the clickOneLayer method. Specifically, it passes the click event to the cb, and adds a param for a seperate callback that triggers if there is no matching layer:
is this something you'd be interested in having in the lib?