map-gl-utils
map-gl-utils copied to clipboard
Error with clickPopup on line features
I'm trying to use clickPopup on a layer with line features and am receiving the following error:
Uncaught Error: LngLatLike
argument must be specified as a LngLat instance, an object {lng:
It works fine on point layers and hoverPopup
seems to work with line features, so I'm wondering if I'm doing something wrong or this is a bug.
Example: https://jsfiddle.net/nh7dsgj6/2/. Click the blue water layer to see the issue.
Thanks!