@aibee/crc-bmap 0.2.12 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bmap.cjs.min.js +1 -1
- package/lib/bmap.cjs.min.js.map +2 -2
- package/lib/bmap.esm.js +2 -3
- package/lib/bmap.esm.js.map +2 -2
- package/lib/bmap.esm.min.js +1 -1
- package/lib/bmap.esm.min.js.map +2 -2
- package/lib/bmap.min.js +1 -1
- package/lib/bmap.min.js.map +2 -2
- package/package.json +1 -1
package/lib/bmap.esm.js
CHANGED
|
@@ -10947,9 +10947,8 @@ var Navigation = class extends Plugin {
|
|
|
10947
10947
|
setStartPoiRotate(rotate) {
|
|
10948
10948
|
if (this.startPoi) {
|
|
10949
10949
|
const azimuthalAngle = this.bmap.context.control.getAzimuthalAngle();
|
|
10950
|
-
const azimuthal = azimuthalAngle * 180 / Math.PI;
|
|
10951
|
-
this.startPoi.options.icon_rotate = (
|
|
10952
|
-
``;
|
|
10950
|
+
const azimuthal = (azimuthalAngle * 180 / Math.PI + 360) % 360;
|
|
10951
|
+
this.startPoi.options.icon_rotate = (180 - rotate - azimuthal) % 360;
|
|
10953
10952
|
}
|
|
10954
10953
|
}
|
|
10955
10954
|
dispose() {
|