Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图标的旋转角度不对 #12

Open
YokyAndKen opened this issue Sep 2, 2024 · 3 comments
Open

图标的旋转角度不对 #12

YokyAndKen opened this issue Sep 2, 2024 · 3 comments

Comments

@YokyAndKen
Copy link

YokyAndKen commented Sep 2, 2024

1725260759047

绘制的时候发现图标的旋转角度跟路线对不上,请问这个是什么问题呢
let track = new L.TrackPlayer([
[25.10000, 120.30000], [26.50000, 120.70000],
[25.90000, 121.60000], [25.10000, 120.30000],
], {
markerIcon: L.icon({
iconUrl: ./iconfont/car.png,
iconSize: [40,40],
}),
speed: 120000, weight: 8, panTo: true,
markerRotation: true, rotationOrigin: "center", markerRotationOffset: 0
}).addTo(this._mapContainer);
track.start();

@a864614973
Copy link

我也存在这个问题
image

@Axin3344
Copy link

Axin3344 commented Dec 5, 2024

通过下载使用作者的源代码解决了我的旋转角度问题,希望对你有所帮助
Snipaste_2024-12-05_17-31-07

@Axin3344
Copy link

Axin3344 commented Dec 5, 2024

通过下载使用作者的源代码解决了我的旋转角度问题,希望对你有所帮助 Snipaste_2024-12-05_17-31-07

注意安装这几个包
Snipaste_2024-12-05_17-33-31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants