mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Using transform:scale in css causes mapbox mouse events to be offset

Open xiangyin1987 opened this issue 1 year ago • 2 comments

mapbox-gl-js version: ^3.3.0

Question

Snipaste_2024-05-06_17-04-58 Snipaste_2024-05-07_22-22-46

The result returned by the getScaledPoint function does not take into account transform:scale

xiangyin1987 avatar May 07 '24 14:05 xiangyin1987

I have temporarily fixed the transform:scale offset problem based on mapbox 3.3.0. Dependency address: https://www.npmjs.com/package/@jkyu/mapbox-gl

xiangyin1987 avatar May 16 '24 06:05 xiangyin1987

@xiangyin1987 It's very helpful to me.Thanks~

lin0102 avatar Jul 25 '24 11:07 lin0102