@aibee/crc-bmap 0.5.7 → 0.5.9
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 -2
- 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
|
@@ -8586,7 +8586,7 @@ var PositionNavigation = class extends EventDispatcher10 {
|
|
|
8586
8586
|
if (dir !== "start" /* START */ && nextDirDistance >= this.options.directionEmitThreshold) {
|
|
8587
8587
|
dir = "front" /* FRONT */;
|
|
8588
8588
|
}
|
|
8589
|
-
if (curRouteRemainDistance <=
|
|
8589
|
+
if (curRouteRemainDistance <= 10) {
|
|
8590
8590
|
dir = "end" /* END */;
|
|
8591
8591
|
}
|
|
8592
8592
|
return {
|
|
@@ -8955,7 +8955,7 @@ var Navigation = class extends Plugin {
|
|
|
8955
8955
|
const { clientSize: { width, height }, currentFloor } = this.bmap.context;
|
|
8956
8956
|
const { max, min } = currentFloor.box;
|
|
8957
8957
|
const baseScale = Math.min(width / (max.x - min.x), height / (max.y - min.y));
|
|
8958
|
-
const zoom = baseScale * (max.x - min.x) /
|
|
8958
|
+
const zoom = baseScale * (max.x - min.x) / 40;
|
|
8959
8959
|
return this.bmap.context.setZoom(
|
|
8960
8960
|
zoom,
|
|
8961
8961
|
this.startPoi.position,
|