-
Notifications
You must be signed in to change notification settings - Fork 607
Closed
Description
mapbox-gl-js version: 2.10.0
mapbox-gl-draw version: 1.3.0
Steps to Trigger Behavior
- Have custom style for feature based on user properties, e.g.
{
id: "draw-path-arrows",
type: "symbol",
filter: ["all", ["==", "$type", "LineString"], ["has", "user_arrows"], ["!=", "user_arrows", "none"]],
layout: {
'symbol-placement': 'line',
'symbol-spacing': 20,
'icon-allow-overlap': true,
'icon-rotate': ['case', ['==', ['get', 'user_arrows'], 'fwd'], 0, 180],
// 'icon-ignore-placement': true,
'icon-image': 'arrow',
'icon-size': 1,
'visibility': 'visible'
},
},
- Change feature property (here
arrows) and set all features withdraw.set
Expected Behavior
Given feature updates and re-renders so custom style properties are applied correctly.
Actual Behavior
Feature doesn't re-render so property change has no effect until something else triggers a re-render.
I assume something should be added here
Line 96 in 7e4e21a
| internalFeature.properties = feature.properties; |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels