-
Notifications
You must be signed in to change notification settings - Fork 140
Closed
Labels
Description
vue-mapbox/src/components/layer/GeojsonLayer.js
Lines 162 to 169 in bfffb7f
| if (this.type !== "symbol") { | |
| layer.paint = this.paint | |
| ? this.paint | |
| : { | |
| "fill-color": `rgba(${12 * | |
| (this.layerId.length * 3)},153,80,0.55)` | |
| }; | |
| } |
LINE: 162, paint is not applied because symbol is excluded.
This can not change text-color etc.
<template>
<MglMap>
<MglGeojsonLayer
type="symbol"
:paint="symbolPaint"
/>
</MglMap>
</template>
<script>
export default {
data() = {
symbolPaint: {
"text-color": "#FFFFFF"
}
}
}
</script>