fix: gaodeMap Zoom in & Zoom out

This commit is contained in:
thinkinggis 2020-01-19 00:10:16 +08:00
parent 3d5764bfc7
commit 5643edca23
1 changed files with 2 additions and 2 deletions

View File

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