Skip to content

Add paint of type is symol for GeojsonLayer #76

@ms-7083

Description

@ms-7083

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions