File tree Expand file tree Collapse file tree
src/mapboxgl/mapping/webmap/v3 Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments