diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index e332f3c..63d867d 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -7,7 +7,7 @@ > - @@ -285,12 +285,12 @@ .setData(turf.featureCollection([])); let key = (properties.c_layer || "").includes(keys_[0]) ? keys_[0] : keys_[1]; if (properties.pointTypeName) key = keys_[1]; - const nameKey = '龙王咀' || properties.name.substring(0, 2); - let features = line.features.filter(i => i.properties.area.includes(key)); + const nameKey = "龙王咀" || properties.name.substring(0, 2); + let features = line.features.filter((i) => i.properties.area.includes(key)); // let features1 = point.features.filter(i => i.properties.type.includes(key) ); debugger; - let points = _.groupBy(point.features, a => a.properties.type); - features.forEach(i => { + let points = _.groupBy(point.features, (a) => a.properties.type); + features.forEach((i) => { i.properties.type = keys[2]; i.properties.color = key == keys_[0] ? "rgba(21,127,176,1)" : "rgba(255,0,0,1)"; }); @@ -585,19 +585,19 @@ const clearTemporaryData = () => { const { setLayerVisible, removeMapDatas } = events_params; const keys_ = [ - '问题管线', - '1_泵站', - '1_污水处理厂', - '1_调蓄池', - '分区流向', - '分区流向1', - 'rainwater_pipeline_water_level', - 'rainwater_pipeline_water_level_GWGSWYX', - 'outlet_info1', - 'temporary', - 'highlight_linestring', - 'highlight_polygon', - 'highlight_point', + "问题管线", + "1_泵站", + "1_污水处理厂", + "1_调蓄池", + "分区流向", + "分区流向1", + "rainwater_pipeline_water_level", + "rainwater_pipeline_water_level_GWGSWYX", + "outlet_info1", + "temporary", + "highlight_linestring", + "highlight_polygon", + "highlight_point", ]; const hideKeys = ["雨水系统流向", "雨水系统流向1"]; bus.emit(removeMapDatas.key, keys_); diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index e332f3c..63d867d 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -7,7 +7,7 @@ > - @@ -285,12 +285,12 @@ .setData(turf.featureCollection([])); let key = (properties.c_layer || "").includes(keys_[0]) ? keys_[0] : keys_[1]; if (properties.pointTypeName) key = keys_[1]; - const nameKey = '龙王咀' || properties.name.substring(0, 2); - let features = line.features.filter(i => i.properties.area.includes(key)); + const nameKey = "龙王咀" || properties.name.substring(0, 2); + let features = line.features.filter((i) => i.properties.area.includes(key)); // let features1 = point.features.filter(i => i.properties.type.includes(key) ); debugger; - let points = _.groupBy(point.features, a => a.properties.type); - features.forEach(i => { + let points = _.groupBy(point.features, (a) => a.properties.type); + features.forEach((i) => { i.properties.type = keys[2]; i.properties.color = key == keys_[0] ? "rgba(21,127,176,1)" : "rgba(255,0,0,1)"; }); @@ -585,19 +585,19 @@ const clearTemporaryData = () => { const { setLayerVisible, removeMapDatas } = events_params; const keys_ = [ - '问题管线', - '1_泵站', - '1_污水处理厂', - '1_调蓄池', - '分区流向', - '分区流向1', - 'rainwater_pipeline_water_level', - 'rainwater_pipeline_water_level_GWGSWYX', - 'outlet_info1', - 'temporary', - 'highlight_linestring', - 'highlight_polygon', - 'highlight_point', + "问题管线", + "1_泵站", + "1_污水处理厂", + "1_调蓄池", + "分区流向", + "分区流向1", + "rainwater_pipeline_water_level", + "rainwater_pipeline_water_level_GWGSWYX", + "outlet_info1", + "temporary", + "highlight_linestring", + "highlight_polygon", + "highlight_point", ]; const hideKeys = ["雨水系统流向", "雨水系统流向1"]; bus.emit(removeMapDatas.key, keys_); diff --git a/src/components/Map/streetSpace.vue b/src/components/Map/streetSpace.vue index 00e6aa7..29e9d95 100644 --- a/src/components/Map/streetSpace.vue +++ b/src/components/Map/streetSpace.vue @@ -2,7 +2,12 @@