mirror of
https://github.com/directus/directus.git
synced 2026-01-28 22:37:57 -05:00
Fix map interface controls not showing (#7812)
This commit is contained in:
@@ -239,6 +239,16 @@ export default defineComponent({
|
||||
loadValueFromProps();
|
||||
}
|
||||
);
|
||||
|
||||
watch(
|
||||
() => props.disabled,
|
||||
() => {
|
||||
map.removeControl(controls.draw);
|
||||
controls.draw = new MapboxDraw(getDrawOptions(geometryType));
|
||||
map.addControl(controls.draw as IControl, 'top-left');
|
||||
loadValueFromProps();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function resetValue(hard: boolean) {
|
||||
|
||||
Reference in New Issue
Block a user