mirror of https://gitee.com/antv-l7/antv-l7
fix(Amap): fix mapstyle
This commit is contained in:
parent
2da2c1f2af
commit
9be646b8ab
|
@ -38,15 +38,17 @@ export default class GaodeMap extends Base {
|
||||||
|
|
||||||
initMap() {
|
initMap() {
|
||||||
const mapStyle = this.get('mapStyle');
|
const mapStyle = this.get('mapStyle');
|
||||||
switch (mapStyle) {
|
if (mapStyle) {
|
||||||
case 'dark':
|
switch (mapStyle) {
|
||||||
this.set('mapStyle', Theme.DarkTheme.mapStyle);
|
case 'dark':
|
||||||
break;
|
this.set('mapStyle', Theme.DarkTheme.mapStyle);
|
||||||
case 'light':
|
break;
|
||||||
this.set('mapStyle', Theme.LightTheme.mapStyle);
|
case 'light':
|
||||||
break;
|
this.set('mapStyle', Theme.LightTheme.mapStyle);
|
||||||
default:
|
break;
|
||||||
this.set('mapStyle', mapStyle);
|
default:
|
||||||
|
this.set('mapStyle', mapStyle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.set('zooms', [ this.get('minZoom'), this.get('maxZoom') ]);
|
this.set('zooms', [ this.get('minZoom'), this.get('maxZoom') ]);
|
||||||
const map = this.get('map');
|
const map = this.get('map');
|
||||||
|
|
Loading…
Reference in New Issue