We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
绘制的时候发现图标的旋转角度跟路线对不上,请问这个是什么问题呢 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();
./iconfont/car.png
The text was updated successfully, but these errors were encountered:
我也存在这个问题
Sorry, something went wrong.
通过下载使用作者的源代码解决了我的旋转角度问题,希望对你有所帮助
注意安装这几个包
No branches or pull requests
绘制的时候发现图标的旋转角度跟路线对不上,请问这个是什么问题呢
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();
The text was updated successfully, but these errors were encountered: