react-baidu-map icon indicating copy to clipboard operation
react-baidu-map copied to clipboard

Marker 如何旋转

Open blinkMyEyesConsciously opened this issue 4 years ago • 3 comments

如题; 我试过ref 获取marker的引用 手动setRotation ; 然而他并不生效

blinkMyEyesConsciously avatar Jul 24 '20 09:07 blinkMyEyesConsciously

@blinkMyEyesConsciously 你看一下百度API 文档

jaywcjlove avatar Jul 24 '20 13:07 jaywcjlove

@jaywcjlove image 这是我的代码 我认为这样它能够生效;但是他并不能如我所愿

blinkMyEyesConsciously avatar Jul 27 '20 00:07 blinkMyEyesConsciously

image 我试了一下 蓝色箭头他的设置旋转不生效,但是红色箭头设置旋转他就生效

blinkMyEyesConsciously avatar Jul 27 '20 01:07 blinkMyEyesConsciously