|
|
|
@ -152,8 +152,11 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const updateSamplesLayer = () => {
|
|
|
|
const updateSamplesLayer = () => {
|
|
|
|
|
|
|
|
if (map.value.getLayer('samples-layer')){
|
|
|
|
map.value.removeLayer('samples-layer');
|
|
|
|
map.value.removeLayer('samples-layer');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(props.idlist.length){
|
|
|
|
map.value.addLayer({
|
|
|
|
map.value.addLayer({
|
|
|
|
'id': 'samples-layer',
|
|
|
|
'id': 'samples-layer',
|
|
|
|
'source': 'samples',
|
|
|
|
'source': 'samples',
|
|
|
|
@ -173,7 +176,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filter: ["match", ["get", "internal_id"], props.idlist, true, false]
|
|
|
|
filter: ["match", ["get", "internal_id"], props.idlist, true, false]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
|