stevage / map-gl-utils

A utility library that makes Mapbox GL JS or Maplibre GL a bit more convenient to work with.
https://npmjs.com/package/map-gl-utils
212 stars 24 forks source link

Add click event to clickOneLayer cb; add noMatchCb to clickOneLayer #7

Closed lucasprograms closed 4 years ago

lucasprograms commented 4 years ago

Two Intentions:

1) Provide the click event to the callback of clickOneLayer, as a property in the object is passed to the callback

2) Provide an option for a callback that triggers if none of the provided layers are clicked.

stevage commented 4 years ago

Thanks! I added some doco and published.