diff --git a/public/static/libs/mapbox/style/wh_dhgx.json b/public/static/libs/mapbox/style/wh_dhgx.json index 0906704..f06424f 100644 --- a/public/static/libs/mapbox/style/wh_dhgx.json +++ b/public/static/libs/mapbox/style/wh_dhgx.json @@ -1,14 +1,14 @@ { "params": { "basemap": "https://supermap2.wh-nf.cn:8090/bm", - "mvt": "https://supermap0.wh-nf.cn:8090/vt/mvt", + "mvt": "https://supermap0.wh-nf.cn:8090/vt/v1/mvt", "geojson": "https://supermap0.wh-nf.cn:8090/vt/geojson", "sprites": [ "/static/libs/mapbox/style/sprite/sprite" ], "init": { - "center": [114.46005135362464, 30.43882434475003], - "zoom": 10.8, + "center": [114.40776390595016, 30.484477581887262], + "zoom": 11.3, "maxZoom": 20.9, "minZoom": 1, "pitch": 0, @@ -939,8 +939,8 @@ "match", ["get", "level"], "1",0.5, - "2",0.35, - "3",0.25, + "2",0.1, + "3",0.05, "4",0.05, 0.5 ] @@ -1228,6 +1228,7 @@ { "id": "pipeline_info", "key": "hb_wh_dhgx_pipe_line_n_y_w", + "source-layer": "hb_wh_dhgx_pipe_line_n_y_w", "type": "line", "filter": [ "all", @@ -1245,14 +1246,15 @@ "line-width": 2 }, "layout": {}, - "minzoom": 0, + "minzoom": 10, "maxzoom": 24, - "mType": "geojsonMvt", + "mType": "mvt", "columns": "segment_code AS 管段编码, pipeline_texture AS 管线材质, pipeline_diameter AS 管径, section_type AS 管段类型, flow_direction AS 流向, drainage_system AS 流域, ys as 雨水系统, ws as 污水系统,st_asText(geometrys) as geometry" }, { "id": "pipeline_point", "key": "hb_wh_dhgx_pipe_point_n_y_w", + "source-layer": "hb_wh_dhgx_pipe_point_n_y_w", "type": "symbol", "filter": [ "all", @@ -1290,18 +1292,19 @@ }, "minzoom": 14, "maxzoom": 24, - "mType": "geojsonMvt", + "mType": "mvt", "columns": "point_number AS 外业点号,appendage AS 附属物, point_type AS 类型, area_water as 流域, ys as 雨水系统, ws as 污水系统,st_asText(geometrys) as geometry" }, { "id": "pipeline_info_text", "key": "hb_wh_dhgx_pipe_line_n_y_w", + "source-layer": "hb_wh_dhgx_pipe_line_n_y_w", "type": "symbol", "filter": [ "all", ["in", ["get", "管段类型"],["literal", [""]]] ], - "minzoom": 1, + "minzoom": 14, "layout": { "symbol-placement": "line-center", "symbol-spacing": 40, @@ -1341,7 +1344,7 @@ "text-halo-color": "hsl(0, 0%, 100%)", "text-halo-width": 2 }, - "mType": "geojsonMvt", + "mType": "mvt", "columns": "segment_code AS 管段编码, pipeline_texture AS 管线材质, pipeline_diameter AS 管径, section_type AS 管段类型, flow_direction AS 流向, drainage_system AS 流域, ys as 雨水系统, ws as 污水系统,st_asText(geometrys) as geometry" }, { diff --git a/public/static/libs/mapbox/style/wh_dhgx.json b/public/static/libs/mapbox/style/wh_dhgx.json index 0906704..f06424f 100644 --- a/public/static/libs/mapbox/style/wh_dhgx.json +++ b/public/static/libs/mapbox/style/wh_dhgx.json @@ -1,14 +1,14 @@ { "params": { "basemap": "https://supermap2.wh-nf.cn:8090/bm", - "mvt": "https://supermap0.wh-nf.cn:8090/vt/mvt", + "mvt": "https://supermap0.wh-nf.cn:8090/vt/v1/mvt", "geojson": "https://supermap0.wh-nf.cn:8090/vt/geojson", "sprites": [ "/static/libs/mapbox/style/sprite/sprite" ], "init": { - "center": [114.46005135362464, 30.43882434475003], - "zoom": 10.8, + "center": [114.40776390595016, 30.484477581887262], + "zoom": 11.3, "maxZoom": 20.9, "minZoom": 1, "pitch": 0, @@ -939,8 +939,8 @@ "match", ["get", "level"], "1",0.5, - "2",0.35, - "3",0.25, + "2",0.1, + "3",0.05, "4",0.05, 0.5 ] @@ -1228,6 +1228,7 @@ { "id": "pipeline_info", "key": "hb_wh_dhgx_pipe_line_n_y_w", + "source-layer": "hb_wh_dhgx_pipe_line_n_y_w", "type": "line", "filter": [ "all", @@ -1245,14 +1246,15 @@ "line-width": 2 }, "layout": {}, - "minzoom": 0, + "minzoom": 10, "maxzoom": 24, - "mType": "geojsonMvt", + "mType": "mvt", "columns": "segment_code AS 管段编码, pipeline_texture AS 管线材质, pipeline_diameter AS 管径, section_type AS 管段类型, flow_direction AS 流向, drainage_system AS 流域, ys as 雨水系统, ws as 污水系统,st_asText(geometrys) as geometry" }, { "id": "pipeline_point", "key": "hb_wh_dhgx_pipe_point_n_y_w", + "source-layer": "hb_wh_dhgx_pipe_point_n_y_w", "type": "symbol", "filter": [ "all", @@ -1290,18 +1292,19 @@ }, "minzoom": 14, "maxzoom": 24, - "mType": "geojsonMvt", + "mType": "mvt", "columns": "point_number AS 外业点号,appendage AS 附属物, point_type AS 类型, area_water as 流域, ys as 雨水系统, ws as 污水系统,st_asText(geometrys) as geometry" }, { "id": "pipeline_info_text", "key": "hb_wh_dhgx_pipe_line_n_y_w", + "source-layer": "hb_wh_dhgx_pipe_line_n_y_w", "type": "symbol", "filter": [ "all", ["in", ["get", "管段类型"],["literal", [""]]] ], - "minzoom": 1, + "minzoom": 14, "layout": { "symbol-placement": "line-center", "symbol-spacing": 40, @@ -1341,7 +1344,7 @@ "text-halo-color": "hsl(0, 0%, 100%)", "text-halo-width": 2 }, - "mType": "geojsonMvt", + "mType": "mvt", "columns": "segment_code AS 管段编码, pipeline_texture AS 管线材质, pipeline_diameter AS 管径, section_type AS 管段类型, flow_direction AS 流向, drainage_system AS 流域, ys as 雨水系统, ws as 污水系统,st_asText(geometrys) as geometry" }, { diff --git a/src/views/pictureOnMap/page/DrainageSystem/index.vue b/src/views/pictureOnMap/page/DrainageSystem/index.vue index 0bd18bd..e347b50 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/index.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/index.vue @@ -100,7 +100,7 @@ onMounted(() => { let initeGLTimer = setInterval(() => { - if (!newfiberMap) return; + if (!window.newfiberMap) return; TypeClick(AllData.yw_type[1]); clearInterval(initeGLTimer);