Skip to content

Commit a11c6be

Browse files
committed
【feat】webmap 3.0 拉伸图层图例优化
1 parent 14faaff commit a11c6be

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/mapboxgl/mapping/webmap/v3/WebMap.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ export class WebMap extends mapboxgl.Evented {
836836
return LEGEND_RENDER_TYPE.LINE;
837837
case 'fill':
838838
return LEGEND_RENDER_TYPE.FILL;
839-
case 'fill-extrusion':
839+
case 'fillExtrusion':
840840
return LEGEND_RENDER_TYPE.FILLEXTRUSION;
841841
case 'animatePoint':
842842
return LEGEND_RENDER_TYPE.ANIMATEPOINT;
@@ -871,7 +871,7 @@ export class WebMap extends mapboxgl.Evented {
871871
case 'fill':
872872
case 'heatGrid':
873873
case 'heat3DGrid':
874-
case 'fill-extrusion':
874+
case 'fillExtrusion':
875875
return LEGEND_SHAPE_TYPE.RECTANGLE;
876876
case 'animatePoint':
877877
return LEGEND_SHAPE_TYPE.ANIMATEPOINT;
@@ -1207,7 +1207,7 @@ export class WebMap extends mapboxgl.Evented {
12071207
Object.assign(cssStyle, { outline: defaultStyle.outline, marginLeft: '1px' });
12081208
}
12091209
if (this._spriteDatas[symbolId]) {
1210-
return this._getSpriteStyle(symbolId, cssStyle);
1210+
return this._getSpriteStyle(symbolId, { ...cssStyle, backgroundColor: 'transparent' });
12111211
}
12121212
return {
12131213
type: LEGEND_STYLE_TYPES.STYLE,

0 commit comments

Comments
 (0)