Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add paint of type is symol for GeojsonLayer #76

Closed
ms-7083 opened this issue Jan 22, 2019 · 1 comment
Closed

Add paint of type is symol for GeojsonLayer #76

ms-7083 opened this issue Jan 22, 2019 · 1 comment
Labels

Comments

@ms-7083
Copy link

ms-7083 commented Jan 22, 2019

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>
@soal soal added the bug label Jan 22, 2019
@soal
Copy link
Owner

soal commented Feb 16, 2019

Must be fixed in 0.2. Feel free to reopen this issue if you still have this problem.

@soal soal closed this as completed Feb 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants