We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2b53e0 + 8bc7131 commit 5099077Copy full SHA for 5099077
resources/assets/js/videos/components/videoScreen/annotationPlayback.vue
@@ -128,11 +128,9 @@ export default {
128
refreshSingleAnnotation(annotation) {
129
let source = this.annotationSource;
130
131
- let newFeature = this.createFeature(annotation);
132
- let oldFeature = source.getFeatureById(annotation.id)
133
-
134
- source.removeFeature(oldFeature);
135
- source.addFeature(newFeature);
+ let feature = source.getFeatureById(annotation.id);
+
+ feature.set('color', annotation.labels[0].label.color);
136
},
137
createFeature(annotation) {
138
let feature = new Feature(this.getGeometryFromPoints(annotation.shape, annotation.points[0]));
0 commit comments