-
Notifications
You must be signed in to change notification settings - Fork 139
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
Reactivity of opacity
in Layers.OlTileLayer
broken in v11
#410
Comments
Not sure if this is related, but I'm also having a reactivity bug with the following: <template>
<!-- other stuff -->
<Layers.OlVectorLayer>
<Sources.OlSourceVector :features="features">
<Map.OlFeature
v-for="(feature, key) in features"
:key="key"
:properties="feature.getProperties()"
>
<Styles.OlStyle :key="JSON.stringify(scale.steps)">
<Styles.OlStyleStroke color="black" />
<Styles.OlStyleFill
:color="scale.getColor(feature.get('id'))"
/>
</Styles.OlStyle>
</Map.OlFeature>
</Sources.OlSourceVector>
</Layers.OlVectorLayer>
<!-- other stuff -->
</template> where Note the For context: Pretty sure this is a bug in the library because if I change the gradient color, the map doesn't re-draw. But then if I drag/pan them map, it does update to the correct colors. |
Another reactivity (or something) bug. Trying to do a very simple thing: change the fill of a feature when the user hovers it, but exclude a layer of text labels that hover over each feature (otherwise I get a bad flickering back and forth of the color when hovering across a label). Adding the <template>
<Interactions.OlInteractionSelect
:condition="pointerMove"
:layers="(layer) => layer.get('name') !== 'labels'"
>
<Styles.OlStyle :key="Math.random()">
<Styles.OlStyleFill />
</Styles.OlStyle>
</Interactions.OlInteractionSelect>
</template> Unfortunately all of these issues I and others are running into make me feel not confident in using this library in a production site. I need to be 100% sure the map will show the right thing e.g. when users change filter controls. So I'm probably going to need to switch to just using Open Layers directly. |
Hi. I think the problem is in the 11.3.2 update. In my case the
It works on 11.3.1 but updated to 11.3.2 it breaks. Changing activeMapStyleIndex does not change the map layer. I laso have the same warning
And i beleive that is caused by changes in OlTileLayer.vue file in 11.3.2 update |
Describe the bug
Put this into the current playground:
And it works, the tile layer opacity changes at random. I couldn't figure out why it wasn't working locally for me, then I noticed the Playground is still on
v10
. If you upgrade it tov11
, the opacity is no longer reactive, it just stays whatever its initial value was.P.S. The playground should really be updated, v11 has been out for several months.
Affected version(s)
I believe this warning I get in the console is related:
The text was updated successfully, but these errors were encountered: