|
@@ -100,7 +100,6 @@ export default {
|
|
|
that.scene.markerClick(that, that.markClick);
|
|
|
that.scene.spaceClick(that, that.spaceClick);
|
|
|
that.view.fitSceneToView();
|
|
|
- that.view.maxScale = that.view.scale * 10;
|
|
|
that.view.minScale = that.view.scale;
|
|
|
// that.view.minScale = 0.000001;
|
|
|
if (that.$refs.canvasFun) {
|
|
@@ -307,7 +306,8 @@ export default {
|
|
|
"view.scale": {
|
|
|
handler(n, o) {
|
|
|
if (this.$refs.canvasFun) {
|
|
|
- this.$refs.canvasFun.sliderVal = n * 10 / this.view.minScale;
|
|
|
+ let s = n * 10 / this.view.minScale
|
|
|
+ this.$refs.canvasFun.sliderVal = s > 1000 ? 1000 : s;
|
|
|
}
|
|
|
}
|
|
|
}
|