fix: gaodeMap Zoom in & Zoom out

This commit is contained in:
thinkinggis 2020-01-19 00:10:16 +08:00
parent 38db4656bd
commit 25d74cbc5a
1 changed files with 2 additions and 2 deletions

View File

@ -159,11 +159,11 @@ export default class AMapService
public getMinZoom(): number {
const zooms = this.map.get('zooms') as [number, number];
return zooms[0];
return zooms[0] - 1;
}
public getMaxZoom(): number {
const zooms = this.map.get('zooms') as [number, number];
return zooms[1];
return zooms[1] - 1;
}
public setRotation(rotation: number): void {
return this.map.setRotation(rotation);