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

Mapcontainer set transform = scale(1,0.5)

Open tangjuncheng1986 opened this issue 3 years ago • 3 comments

Hi: If I set mapcontianer with transform = scale(1,0.5) ,scale x and y.Then I cannot click the feature,but if I scale(0.5,0.5) ,it is correct. https://codesandbox.io/s/7u950r

tangjuncheng1986 avatar Jun 28 '22 10:06 tangjuncheng1986

Thanks for reporting this issue @tangjuncheng1986!

Can you elaborate on why you'd like to style the map container with scale(1,0.5)? It seems to me that the resulting distortion makes this nearly unusable and would even if mouse events worked as expected. image

SnailBones avatar Jun 29 '22 17:06 SnailBones

Thank you very much. I want to adapt to multiple screen resolutions to reduce the workload of the UI interface。

tangjuncheng1986 avatar Jul 01 '22 02:07 tangjuncheng1986

And If scaleX !== scaleY image

tangjuncheng1986 avatar Jul 01 '22 02:07 tangjuncheng1986