@hzab/map-combine 1.0.0-alpha.1 → 1.0.0-alpha.2
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/package.json +1 -1
- package/src/amap/AMap.ts +1 -2
package/package.json
CHANGED
package/src/amap/AMap.ts
CHANGED
|
@@ -254,11 +254,10 @@ export class AMap extends MapCombine {
|
|
|
254
254
|
);
|
|
255
255
|
|
|
256
256
|
var currentZoom = this.viewer.getZoom();
|
|
257
|
-
var MAX_ALLOWED_ZOOM = 15;
|
|
258
257
|
|
|
259
258
|
if (opt.maxZoom && currentZoom > opt.maxZoom) {
|
|
260
259
|
// 如果当前缩放级别超过限制,则手动设置回最大允许级别
|
|
261
|
-
this.viewer.setZoom(
|
|
260
|
+
this.viewer.setZoom(opt.maxZoom);
|
|
262
261
|
}
|
|
263
262
|
});
|
|
264
263
|
}
|