diff --git a/src/assets/main.css b/src/assets/main.css index 9b89e668..a6dab390 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -130,6 +130,11 @@ color: rgb(51, 51, 51); } + .lux-btn-grey.pressed { + background-color: rgb(133, 168, 233); + color: rgb(51, 51, 181); + } + .lux-close-cross { @apply after:content-['\e02c']; } diff --git a/src/components/draw/feature-edit-linestyle-item.vue b/src/components/draw/feature-edit-linestyle-item.vue new file mode 100644 index 00000000..a2bc6e70 --- /dev/null +++ b/src/components/draw/feature-edit-linestyle-item.vue @@ -0,0 +1,27 @@ + + + diff --git a/src/components/draw/feature-edit-style.vue b/src/components/draw/feature-edit-style.vue index 50454933..aa7be87e 100644 --- a/src/components/draw/feature-edit-style.vue +++ b/src/components/draw/feature-edit-style.vue @@ -14,6 +14,8 @@ import FeatureEditStylePolygon from './feature-edit-style-polygon.vue' import FeatureEditStyleLabel from './feature-edit-style-label.vue' import FeatureEditStyleSymbole from './feature-edit-style-symbole.vue' +import FeatureEditLinestyleItem from './feature-edit-linestyle-item.vue' + const { t } = useTranslation() const feature: DrawnFeature = inject('feature')! const popupOpen: Ref = ref(false) @@ -27,6 +29,8 @@ const styleComponents = { FeatureEditStyleLabel, } +const linestyles = ['plain', 'dashed', 'dotted'] + const currentStyleComponent = computed(() => feature?.featureType.replace('drawn', 'FeatureEditStyle') ) @@ -164,21 +168,13 @@ function onClickChangeLineStyle(style: string) { {{ t('Style') }}
- - - +
@@ -189,7 +185,6 @@ function onClickChangeLineStyle(style: string) { {{ t('Stroke width') }} {{ t('Show orientation') }} - +
diff --git a/src/composables/draw/draw-select.composable.ts b/src/composables/draw/draw-select.composable.ts index 1d81b5a8..250ecfe5 100644 --- a/src/composables/draw/draw-select.composable.ts +++ b/src/composables/draw/draw-select.composable.ts @@ -18,6 +18,7 @@ export default function useDrawSelect() { listen(map, 'click', event => handleClick(event)) watch(activeFeatureId, (newId, oldId) => { + editingFeatureId.value = undefined drawnFeatures.value .filter(f => getUid(f) == oldId) .forEach(oldFeature => { @@ -36,6 +37,7 @@ export default function useDrawSelect() { const handleClick = function (event: any) { const pixel = event.pixel + activeFeatureId.value = undefined const feature = map.forEachFeatureAtPixel( pixel, feature => { @@ -43,7 +45,6 @@ export default function useDrawSelect() { if (featureMatch) { appStore.toggleMyMapsOpen(true) activeFeatureId.value = getUid(feature) - editingFeatureId.value = undefined return }