map-gl-utils icon indicating copy to clipboard operation
map-gl-utils copied to clipboard

Error with clickPopup on line features

Open bmcbride opened this issue 2 years ago • 0 comments

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: , lat: }, an object {lon: , lat: }, or an array of [, ]

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!

bmcbride avatar Mar 24 '22 15:03 bmcbride