You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// WORKS, OK.constmyFilter=ref(['all']);// TODOsetInterval(()=>{myFilter.value=['all',['>','Duration',Math.floor(Math.random()*3600-120)]];},2000);// DOES NOT WORKconstmyPaint=ref({'circle-color': '#c81962','circle-radius': 4,});functionrandomColor(){return'#000000'.replace(/0/g,function(){return(~~(Math.random()*16)).toString(16);});}setInterval(()=>{constnext=randomColor();myPaint.value['circle-color']=next;},2000);// DOES NOT WORKconstmyLayout=ref({visibility: 'visible',// 'none'});setInterval(()=>{myLayout.value.visibility=myLayout.value.visibility==='visible' ? 'none' : 'visible';},2000);
The text was updated successfully, but these errors were encountered:
In referencing this doc https://github.com/indoorequal/vue-maplibre-gl/blob/master/docs/examples/filter.vue,
I had expected to find that
MglCircleLayer
(etc.) would have reactive:paint
and:layout
props too,but have found that only
:filter
behaves reactively.Alternatively, I'm able to use
map.map.setPaintProperty(<layer>, <key>, <val>)
, but... is this the only way? Is this expected behavior?The text was updated successfully, but these errors were encountered: