mirror of https://gitee.com/antv-l7/antv-l7
fix: gaodeMap Zoom in & Zoom out
This commit is contained in:
parent
3d5764bfc7
commit
5643edca23
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue