mirror of https://gitee.com/antv-l7/antv-l7
Merge branch 'master' into mvt
This commit is contained in:
commit
2ceb4069e6
|
@ -68,7 +68,7 @@ function copyPass(layer) {
|
||||||
const style = layer.get('styleOptions');
|
const style = layer.get('styleOptions');
|
||||||
const material = new HeatmapColorizeMaterial({
|
const material = new HeatmapColorizeMaterial({
|
||||||
u_rampColors: layer.rampColors,
|
u_rampColors: layer.rampColors,
|
||||||
u_opacity: style.opacity
|
u_opacity: style.opacity || 1.0
|
||||||
}, {});
|
}, {});
|
||||||
const copyPass = new ShaderPass(material, 'u_texture');
|
const copyPass = new ShaderPass(material, 'u_texture');
|
||||||
return copyPass;
|
return copyPass;
|
||||||
|
|
|
@ -38,6 +38,7 @@ export default class GaodeMap extends Base {
|
||||||
|
|
||||||
initMap() {
|
initMap() {
|
||||||
const mapStyle = this.get('mapStyle');
|
const mapStyle = this.get('mapStyle');
|
||||||
|
if (mapStyle) {
|
||||||
switch (mapStyle) {
|
switch (mapStyle) {
|
||||||
case 'dark':
|
case 'dark':
|
||||||
this.set('mapStyle', Theme.DarkTheme.mapStyle);
|
this.set('mapStyle', Theme.DarkTheme.mapStyle);
|
||||||
|
@ -48,6 +49,7 @@ export default class GaodeMap extends Base {
|
||||||
default:
|
default:
|
||||||
this.set('mapStyle', mapStyle);
|
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');
|
||||||
if (map instanceof AMap.Map) {
|
if (map instanceof AMap.Map) {
|
||||||
|
|
Loading…
Reference in New Issue