Open bmcbride opened 2 years ago
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 [, ]
LngLatLike
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.
hoverPopup
Example: https://jsfiddle.net/nh7dsgj6/2/. Click the blue water layer to see the issue.
Thanks!
I'm trying to use clickPopup on a layer with line features and am receiving the following error:
Uncaught Error:, lat: }, an object {lon: , lat: }, or an array of [, ]
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!