|
@@ -212,7 +212,6 @@ export default defineComponent({
|
|
|
state.searchInput = val.name
|
|
|
switch (val.featureType) {
|
|
|
case 'qy': {
|
|
|
- console.log(1)
|
|
|
store.dispatch('gis/LOAD_GIS_PARAMS_QY_RESET')
|
|
|
store.dispatch('gis/LOAD_GIS_PARAMS_QY', {
|
|
|
wkt: val.wkt,
|
|
@@ -221,7 +220,6 @@ export default defineComponent({
|
|
|
})
|
|
|
} break
|
|
|
case 'sb': {
|
|
|
- console.log(2)
|
|
|
store.dispatch('gis/LOAD_GIS_PARAMS_DEFAULT_RESET')
|
|
|
store.dispatch('gis/LOAD_GIS_PARAMS_DEFAULT_SB', {
|
|
|
wkt: val.wkt,
|
|
@@ -233,6 +231,8 @@ export default defineComponent({
|
|
|
}
|
|
|
const toolsHandleClick = (item) => {
|
|
|
if (item.value === 'clear') {
|
|
|
+ state.toolsCom = null
|
|
|
+ state.toolsType = ''
|
|
|
// 工具-标绘'layerName', 'toolDrawViewsLayer'
|
|
|
state.map.getLayers().getArray().filter(v => v.get('layerName') === 'toolDrawViewsLayer')?.[0]?.getSource()?.clear()
|
|
|
state.map.getOverlayById('toolOverlay')?.setPosition(undefined)
|