diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json new file mode 100644 index 0000000..5e2b390 --- /dev/null +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -0,0 +1,206 @@ +{ + "params": { + "basemap": "https://supermap2.wh-nf.cn:8090/bm", + "mvt": "https://supermap0.wh-nf.cn:8090/vt", + "sprites": [ + "static/libs/mapbox/style/sprite/sprite6" + ], + "init": { + "center": [ + 114.342, + 34.802 + ], + "zoom": 11.5, + "pitch": 0, + "style": "/static/libs/mapbox/style/customs/whiteMapStyle.json" + }, + "l7": { + "images": [ + { + "name": "02", + "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg" + }, + { + "name": "map_selected", + "url": "/static/libs/mapbox/style/sprite/map_selected.png" + } + ] + } + }, + "ogc": [ + { + "id": "newfiber-XYZLayer", + "type": "XYZLayer", + "params": { + "id": "newfiber-XYZLayer", + "url": "https://t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=a603e07a17766447f9e74f14c5454efa", + "subdomains": [ + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7" + ], + "minZoom": 1, + "maxZoom": 19, + "tileType": "" + }, + "methods": [ + { + "name": "addTo", + "params": [ + "''||map" + ] + }, + { + "name": "hide", + "params": [] + } + ] + } + ], + "l7": [ + { + "id": "", + "key": "highlight_point", + "type": "PointLayer", + "show": true, + "params": { + "zIndex": 0, + "blend": "additive" + }, + "methods": [ + { + "name": "shape", + "params": [ + "map_selected" + ] + }, + { + "name": "size", + "params": [ + 15 + ] + }, + { + "name": "style", + "params": [ + { + "offsets": [ + 0, + 0 + ] + } + ] + } + ] + } + ], + "mapbox": [ + { + "id": "point", + "key": "point", + "type": "symbol", + "minzoom": 0, + "maxzoom": 24, + "filter": [ + "in", + "type", + "", + "online", + "error", + "offline", + "lowVoltage", + "to_punch", + "punched" + ], + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(14, 139, 90, 1)", + "text-halo-width": 2, + "text-opacity": [ + "step", + [ + "zoom" + ], + 0, + 13, + 1 + ] + }, + "layout": { + "icon-image": [ + "match", + [ + "get", + "type" + ], + "YSBZ", + "rainBengZhan_icon", + "WSBZ", + "sewageBenZhan_icon", + "combineBengZhan", + "combineBengZhan_icon", + "sewageFactory", + "sewageFactory_icon", + "waterLoging", + "waterLoging_icon", + "waterCourse", + "waterCourse_icon", + "rainStation", + "rainStation_icon", + "origine", + "origine_icon", + "spongeFacility", + "spongeFacility_icon", + "pipeMonitor", + "pipeMonitor_icon", + "waterFactory", + "waterFactory_icon", + "ysbz" + ], + "text-allow-overlap": true, + "icon-allow-overlap": true, + "icon-anchor": "center", + "icon-size": 0.5, + "text-field": "{name}", + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-size": 16, + "text-line-height": 3, + "text-anchor": "bottom", + "text-max-width": 50, + "text-offset": [ + 0, + 3 + ] + }, + "mType": "geojson" + } + ], + "orders": [ + [ + "newfiber-XYZLayer" + ], + [ + "poi_label" + ], + [ + "place_label_city" + ], + [ + "road_major_label" + ], + [ + "place_label_other" + ], + [ + "point" + ] + ], + "filter": {} +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json new file mode 100644 index 0000000..5e2b390 --- /dev/null +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -0,0 +1,206 @@ +{ + "params": { + "basemap": "https://supermap2.wh-nf.cn:8090/bm", + "mvt": "https://supermap0.wh-nf.cn:8090/vt", + "sprites": [ + "static/libs/mapbox/style/sprite/sprite6" + ], + "init": { + "center": [ + 114.342, + 34.802 + ], + "zoom": 11.5, + "pitch": 0, + "style": "/static/libs/mapbox/style/customs/whiteMapStyle.json" + }, + "l7": { + "images": [ + { + "name": "02", + "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg" + }, + { + "name": "map_selected", + "url": "/static/libs/mapbox/style/sprite/map_selected.png" + } + ] + } + }, + "ogc": [ + { + "id": "newfiber-XYZLayer", + "type": "XYZLayer", + "params": { + "id": "newfiber-XYZLayer", + "url": "https://t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=a603e07a17766447f9e74f14c5454efa", + "subdomains": [ + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7" + ], + "minZoom": 1, + "maxZoom": 19, + "tileType": "" + }, + "methods": [ + { + "name": "addTo", + "params": [ + "''||map" + ] + }, + { + "name": "hide", + "params": [] + } + ] + } + ], + "l7": [ + { + "id": "", + "key": "highlight_point", + "type": "PointLayer", + "show": true, + "params": { + "zIndex": 0, + "blend": "additive" + }, + "methods": [ + { + "name": "shape", + "params": [ + "map_selected" + ] + }, + { + "name": "size", + "params": [ + 15 + ] + }, + { + "name": "style", + "params": [ + { + "offsets": [ + 0, + 0 + ] + } + ] + } + ] + } + ], + "mapbox": [ + { + "id": "point", + "key": "point", + "type": "symbol", + "minzoom": 0, + "maxzoom": 24, + "filter": [ + "in", + "type", + "", + "online", + "error", + "offline", + "lowVoltage", + "to_punch", + "punched" + ], + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(14, 139, 90, 1)", + "text-halo-width": 2, + "text-opacity": [ + "step", + [ + "zoom" + ], + 0, + 13, + 1 + ] + }, + "layout": { + "icon-image": [ + "match", + [ + "get", + "type" + ], + "YSBZ", + "rainBengZhan_icon", + "WSBZ", + "sewageBenZhan_icon", + "combineBengZhan", + "combineBengZhan_icon", + "sewageFactory", + "sewageFactory_icon", + "waterLoging", + "waterLoging_icon", + "waterCourse", + "waterCourse_icon", + "rainStation", + "rainStation_icon", + "origine", + "origine_icon", + "spongeFacility", + "spongeFacility_icon", + "pipeMonitor", + "pipeMonitor_icon", + "waterFactory", + "waterFactory_icon", + "ysbz" + ], + "text-allow-overlap": true, + "icon-allow-overlap": true, + "icon-anchor": "center", + "icon-size": 0.5, + "text-field": "{name}", + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-size": 16, + "text-line-height": 3, + "text-anchor": "bottom", + "text-max-width": 50, + "text-offset": [ + 0, + 3 + ] + }, + "mType": "geojson" + } + ], + "orders": [ + [ + "newfiber-XYZLayer" + ], + [ + "poi_label" + ], + [ + "place_label_city" + ], + [ + "road_major_label" + ], + [ + "place_label_other" + ], + [ + "point" + ] + ], + "filter": {} +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.json b/public/static/libs/mapbox/style/sprite/sprite6.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json new file mode 100644 index 0000000..5e2b390 --- /dev/null +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -0,0 +1,206 @@ +{ + "params": { + "basemap": "https://supermap2.wh-nf.cn:8090/bm", + "mvt": "https://supermap0.wh-nf.cn:8090/vt", + "sprites": [ + "static/libs/mapbox/style/sprite/sprite6" + ], + "init": { + "center": [ + 114.342, + 34.802 + ], + "zoom": 11.5, + "pitch": 0, + "style": "/static/libs/mapbox/style/customs/whiteMapStyle.json" + }, + "l7": { + "images": [ + { + "name": "02", + "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg" + }, + { + "name": "map_selected", + "url": "/static/libs/mapbox/style/sprite/map_selected.png" + } + ] + } + }, + "ogc": [ + { + "id": "newfiber-XYZLayer", + "type": "XYZLayer", + "params": { + "id": "newfiber-XYZLayer", + "url": "https://t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=a603e07a17766447f9e74f14c5454efa", + "subdomains": [ + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7" + ], + "minZoom": 1, + "maxZoom": 19, + "tileType": "" + }, + "methods": [ + { + "name": "addTo", + "params": [ + "''||map" + ] + }, + { + "name": "hide", + "params": [] + } + ] + } + ], + "l7": [ + { + "id": "", + "key": "highlight_point", + "type": "PointLayer", + "show": true, + "params": { + "zIndex": 0, + "blend": "additive" + }, + "methods": [ + { + "name": "shape", + "params": [ + "map_selected" + ] + }, + { + "name": "size", + "params": [ + 15 + ] + }, + { + "name": "style", + "params": [ + { + "offsets": [ + 0, + 0 + ] + } + ] + } + ] + } + ], + "mapbox": [ + { + "id": "point", + "key": "point", + "type": "symbol", + "minzoom": 0, + "maxzoom": 24, + "filter": [ + "in", + "type", + "", + "online", + "error", + "offline", + "lowVoltage", + "to_punch", + "punched" + ], + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(14, 139, 90, 1)", + "text-halo-width": 2, + "text-opacity": [ + "step", + [ + "zoom" + ], + 0, + 13, + 1 + ] + }, + "layout": { + "icon-image": [ + "match", + [ + "get", + "type" + ], + "YSBZ", + "rainBengZhan_icon", + "WSBZ", + "sewageBenZhan_icon", + "combineBengZhan", + "combineBengZhan_icon", + "sewageFactory", + "sewageFactory_icon", + "waterLoging", + "waterLoging_icon", + "waterCourse", + "waterCourse_icon", + "rainStation", + "rainStation_icon", + "origine", + "origine_icon", + "spongeFacility", + "spongeFacility_icon", + "pipeMonitor", + "pipeMonitor_icon", + "waterFactory", + "waterFactory_icon", + "ysbz" + ], + "text-allow-overlap": true, + "icon-allow-overlap": true, + "icon-anchor": "center", + "icon-size": 0.5, + "text-field": "{name}", + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-size": 16, + "text-line-height": 3, + "text-anchor": "bottom", + "text-max-width": 50, + "text-offset": [ + 0, + 3 + ] + }, + "mType": "geojson" + } + ], + "orders": [ + [ + "newfiber-XYZLayer" + ], + [ + "poi_label" + ], + [ + "place_label_city" + ], + [ + "road_major_label" + ], + [ + "place_label_other" + ], + [ + "point" + ] + ], + "filter": {} +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.json b/public/static/libs/mapbox/style/sprite/sprite6.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.png b/public/static/libs/mapbox/style/sprite/sprite6.png new file mode 100644 index 0000000..92820e0 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.png Binary files differ diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json new file mode 100644 index 0000000..5e2b390 --- /dev/null +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -0,0 +1,206 @@ +{ + "params": { + "basemap": "https://supermap2.wh-nf.cn:8090/bm", + "mvt": "https://supermap0.wh-nf.cn:8090/vt", + "sprites": [ + "static/libs/mapbox/style/sprite/sprite6" + ], + "init": { + "center": [ + 114.342, + 34.802 + ], + "zoom": 11.5, + "pitch": 0, + "style": "/static/libs/mapbox/style/customs/whiteMapStyle.json" + }, + "l7": { + "images": [ + { + "name": "02", + "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg" + }, + { + "name": "map_selected", + "url": "/static/libs/mapbox/style/sprite/map_selected.png" + } + ] + } + }, + "ogc": [ + { + "id": "newfiber-XYZLayer", + "type": "XYZLayer", + "params": { + "id": "newfiber-XYZLayer", + "url": "https://t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=a603e07a17766447f9e74f14c5454efa", + "subdomains": [ + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7" + ], + "minZoom": 1, + "maxZoom": 19, + "tileType": "" + }, + "methods": [ + { + "name": "addTo", + "params": [ + "''||map" + ] + }, + { + "name": "hide", + "params": [] + } + ] + } + ], + "l7": [ + { + "id": "", + "key": "highlight_point", + "type": "PointLayer", + "show": true, + "params": { + "zIndex": 0, + "blend": "additive" + }, + "methods": [ + { + "name": "shape", + "params": [ + "map_selected" + ] + }, + { + "name": "size", + "params": [ + 15 + ] + }, + { + "name": "style", + "params": [ + { + "offsets": [ + 0, + 0 + ] + } + ] + } + ] + } + ], + "mapbox": [ + { + "id": "point", + "key": "point", + "type": "symbol", + "minzoom": 0, + "maxzoom": 24, + "filter": [ + "in", + "type", + "", + "online", + "error", + "offline", + "lowVoltage", + "to_punch", + "punched" + ], + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(14, 139, 90, 1)", + "text-halo-width": 2, + "text-opacity": [ + "step", + [ + "zoom" + ], + 0, + 13, + 1 + ] + }, + "layout": { + "icon-image": [ + "match", + [ + "get", + "type" + ], + "YSBZ", + "rainBengZhan_icon", + "WSBZ", + "sewageBenZhan_icon", + "combineBengZhan", + "combineBengZhan_icon", + "sewageFactory", + "sewageFactory_icon", + "waterLoging", + "waterLoging_icon", + "waterCourse", + "waterCourse_icon", + "rainStation", + "rainStation_icon", + "origine", + "origine_icon", + "spongeFacility", + "spongeFacility_icon", + "pipeMonitor", + "pipeMonitor_icon", + "waterFactory", + "waterFactory_icon", + "ysbz" + ], + "text-allow-overlap": true, + "icon-allow-overlap": true, + "icon-anchor": "center", + "icon-size": 0.5, + "text-field": "{name}", + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-size": 16, + "text-line-height": 3, + "text-anchor": "bottom", + "text-max-width": 50, + "text-offset": [ + 0, + 3 + ] + }, + "mType": "geojson" + } + ], + "orders": [ + [ + "newfiber-XYZLayer" + ], + [ + "poi_label" + ], + [ + "place_label_city" + ], + [ + "road_major_label" + ], + [ + "place_label_other" + ], + [ + "point" + ] + ], + "filter": {} +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.json b/public/static/libs/mapbox/style/sprite/sprite6.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.png b/public/static/libs/mapbox/style/sprite/sprite6.png new file mode 100644 index 0000000..92820e0 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.png Binary files differ diff --git a/public/static/libs/mapbox/style/sprite/sprite6@2x.json b/public/static/libs/mapbox/style/sprite/sprite6@2x.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6@2x.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json new file mode 100644 index 0000000..5e2b390 --- /dev/null +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -0,0 +1,206 @@ +{ + "params": { + "basemap": "https://supermap2.wh-nf.cn:8090/bm", + "mvt": "https://supermap0.wh-nf.cn:8090/vt", + "sprites": [ + "static/libs/mapbox/style/sprite/sprite6" + ], + "init": { + "center": [ + 114.342, + 34.802 + ], + "zoom": 11.5, + "pitch": 0, + "style": "/static/libs/mapbox/style/customs/whiteMapStyle.json" + }, + "l7": { + "images": [ + { + "name": "02", + "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg" + }, + { + "name": "map_selected", + "url": "/static/libs/mapbox/style/sprite/map_selected.png" + } + ] + } + }, + "ogc": [ + { + "id": "newfiber-XYZLayer", + "type": "XYZLayer", + "params": { + "id": "newfiber-XYZLayer", + "url": "https://t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=a603e07a17766447f9e74f14c5454efa", + "subdomains": [ + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7" + ], + "minZoom": 1, + "maxZoom": 19, + "tileType": "" + }, + "methods": [ + { + "name": "addTo", + "params": [ + "''||map" + ] + }, + { + "name": "hide", + "params": [] + } + ] + } + ], + "l7": [ + { + "id": "", + "key": "highlight_point", + "type": "PointLayer", + "show": true, + "params": { + "zIndex": 0, + "blend": "additive" + }, + "methods": [ + { + "name": "shape", + "params": [ + "map_selected" + ] + }, + { + "name": "size", + "params": [ + 15 + ] + }, + { + "name": "style", + "params": [ + { + "offsets": [ + 0, + 0 + ] + } + ] + } + ] + } + ], + "mapbox": [ + { + "id": "point", + "key": "point", + "type": "symbol", + "minzoom": 0, + "maxzoom": 24, + "filter": [ + "in", + "type", + "", + "online", + "error", + "offline", + "lowVoltage", + "to_punch", + "punched" + ], + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(14, 139, 90, 1)", + "text-halo-width": 2, + "text-opacity": [ + "step", + [ + "zoom" + ], + 0, + 13, + 1 + ] + }, + "layout": { + "icon-image": [ + "match", + [ + "get", + "type" + ], + "YSBZ", + "rainBengZhan_icon", + "WSBZ", + "sewageBenZhan_icon", + "combineBengZhan", + "combineBengZhan_icon", + "sewageFactory", + "sewageFactory_icon", + "waterLoging", + "waterLoging_icon", + "waterCourse", + "waterCourse_icon", + "rainStation", + "rainStation_icon", + "origine", + "origine_icon", + "spongeFacility", + "spongeFacility_icon", + "pipeMonitor", + "pipeMonitor_icon", + "waterFactory", + "waterFactory_icon", + "ysbz" + ], + "text-allow-overlap": true, + "icon-allow-overlap": true, + "icon-anchor": "center", + "icon-size": 0.5, + "text-field": "{name}", + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-size": 16, + "text-line-height": 3, + "text-anchor": "bottom", + "text-max-width": 50, + "text-offset": [ + 0, + 3 + ] + }, + "mType": "geojson" + } + ], + "orders": [ + [ + "newfiber-XYZLayer" + ], + [ + "poi_label" + ], + [ + "place_label_city" + ], + [ + "road_major_label" + ], + [ + "place_label_other" + ], + [ + "point" + ] + ], + "filter": {} +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.json b/public/static/libs/mapbox/style/sprite/sprite6.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.png b/public/static/libs/mapbox/style/sprite/sprite6.png new file mode 100644 index 0000000..92820e0 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.png Binary files differ diff --git a/public/static/libs/mapbox/style/sprite/sprite6@2x.json b/public/static/libs/mapbox/style/sprite/sprite6@2x.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6@2x.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6@2x.png b/public/static/libs/mapbox/style/sprite/sprite6@2x.png new file mode 100644 index 0000000..92820e0 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6@2x.png Binary files differ diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json new file mode 100644 index 0000000..5e2b390 --- /dev/null +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -0,0 +1,206 @@ +{ + "params": { + "basemap": "https://supermap2.wh-nf.cn:8090/bm", + "mvt": "https://supermap0.wh-nf.cn:8090/vt", + "sprites": [ + "static/libs/mapbox/style/sprite/sprite6" + ], + "init": { + "center": [ + 114.342, + 34.802 + ], + "zoom": 11.5, + "pitch": 0, + "style": "/static/libs/mapbox/style/customs/whiteMapStyle.json" + }, + "l7": { + "images": [ + { + "name": "02", + "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg" + }, + { + "name": "map_selected", + "url": "/static/libs/mapbox/style/sprite/map_selected.png" + } + ] + } + }, + "ogc": [ + { + "id": "newfiber-XYZLayer", + "type": "XYZLayer", + "params": { + "id": "newfiber-XYZLayer", + "url": "https://t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=a603e07a17766447f9e74f14c5454efa", + "subdomains": [ + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7" + ], + "minZoom": 1, + "maxZoom": 19, + "tileType": "" + }, + "methods": [ + { + "name": "addTo", + "params": [ + "''||map" + ] + }, + { + "name": "hide", + "params": [] + } + ] + } + ], + "l7": [ + { + "id": "", + "key": "highlight_point", + "type": "PointLayer", + "show": true, + "params": { + "zIndex": 0, + "blend": "additive" + }, + "methods": [ + { + "name": "shape", + "params": [ + "map_selected" + ] + }, + { + "name": "size", + "params": [ + 15 + ] + }, + { + "name": "style", + "params": [ + { + "offsets": [ + 0, + 0 + ] + } + ] + } + ] + } + ], + "mapbox": [ + { + "id": "point", + "key": "point", + "type": "symbol", + "minzoom": 0, + "maxzoom": 24, + "filter": [ + "in", + "type", + "", + "online", + "error", + "offline", + "lowVoltage", + "to_punch", + "punched" + ], + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(14, 139, 90, 1)", + "text-halo-width": 2, + "text-opacity": [ + "step", + [ + "zoom" + ], + 0, + 13, + 1 + ] + }, + "layout": { + "icon-image": [ + "match", + [ + "get", + "type" + ], + "YSBZ", + "rainBengZhan_icon", + "WSBZ", + "sewageBenZhan_icon", + "combineBengZhan", + "combineBengZhan_icon", + "sewageFactory", + "sewageFactory_icon", + "waterLoging", + "waterLoging_icon", + "waterCourse", + "waterCourse_icon", + "rainStation", + "rainStation_icon", + "origine", + "origine_icon", + "spongeFacility", + "spongeFacility_icon", + "pipeMonitor", + "pipeMonitor_icon", + "waterFactory", + "waterFactory_icon", + "ysbz" + ], + "text-allow-overlap": true, + "icon-allow-overlap": true, + "icon-anchor": "center", + "icon-size": 0.5, + "text-field": "{name}", + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-size": 16, + "text-line-height": 3, + "text-anchor": "bottom", + "text-max-width": 50, + "text-offset": [ + 0, + 3 + ] + }, + "mType": "geojson" + } + ], + "orders": [ + [ + "newfiber-XYZLayer" + ], + [ + "poi_label" + ], + [ + "place_label_city" + ], + [ + "road_major_label" + ], + [ + "place_label_other" + ], + [ + "point" + ] + ], + "filter": {} +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.json b/public/static/libs/mapbox/style/sprite/sprite6.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.png b/public/static/libs/mapbox/style/sprite/sprite6.png new file mode 100644 index 0000000..92820e0 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.png Binary files differ diff --git a/public/static/libs/mapbox/style/sprite/sprite6@2x.json b/public/static/libs/mapbox/style/sprite/sprite6@2x.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6@2x.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6@2x.png b/public/static/libs/mapbox/style/sprite/sprite6@2x.png new file mode 100644 index 0000000..92820e0 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6@2x.png Binary files differ diff --git a/src/api/informationManagement.js b/src/api/informationManagement.js index 2f27dd1..3c147eb 100644 --- a/src/api/informationManagement.js +++ b/src/api/informationManagement.js @@ -8,3 +8,59 @@ params: query, }); } +// 获取海绵一张图泵站信息 +export function oneMapFacilityPumpList(params) { + return request({ + url: `/business/facilityPump/list`, + method: 'get', + params, + }); +} +// 获取污水厂信息管理列表 +export function haiMianfacilitySewagePage(params) { + return request({ + url: `/business/facilitySewage/list`, + method: 'get', + params, + }); +} +// 易涝点数据 +export function waterloggingPointList(query) { + return request({ + url: '/business/preventFlood/waterloggingPoint/list', + method: 'get', + params: query, + }); +} +// 海绵设施 +export function queryProjectStation(data) { + return request({ + url: '/business/projectInfoNew/queryProjectStation', + method: 'post', + data: data, + }); +} +// 获取所有站点设备 +export function getStationList(query) { + return request({ + url: '/business/rtuSiteInfo/list', + method: 'get', + params: query, + }); +} +// 排水防涝一屏概览 物联感知-雨量监测-雨量数据采集 +export function realtimeRainfallStatistics(query) { + return request({ + url: '/business/preventFlood/oneMap/rtuSite/realtimeRainfallStatistics', + method: 'get', + params: query, + }); +} +// // 供水厂-搜索 +// export function waterCompPage(query) { +// return request({ +// url: '/scada/waterPlantInfo/page', +// method: 'get', +// params: query, +// }); +// } diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json new file mode 100644 index 0000000..5e2b390 --- /dev/null +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -0,0 +1,206 @@ +{ + "params": { + "basemap": "https://supermap2.wh-nf.cn:8090/bm", + "mvt": "https://supermap0.wh-nf.cn:8090/vt", + "sprites": [ + "static/libs/mapbox/style/sprite/sprite6" + ], + "init": { + "center": [ + 114.342, + 34.802 + ], + "zoom": 11.5, + "pitch": 0, + "style": "/static/libs/mapbox/style/customs/whiteMapStyle.json" + }, + "l7": { + "images": [ + { + "name": "02", + "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg" + }, + { + "name": "map_selected", + "url": "/static/libs/mapbox/style/sprite/map_selected.png" + } + ] + } + }, + "ogc": [ + { + "id": "newfiber-XYZLayer", + "type": "XYZLayer", + "params": { + "id": "newfiber-XYZLayer", + "url": "https://t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=a603e07a17766447f9e74f14c5454efa", + "subdomains": [ + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7" + ], + "minZoom": 1, + "maxZoom": 19, + "tileType": "" + }, + "methods": [ + { + "name": "addTo", + "params": [ + "''||map" + ] + }, + { + "name": "hide", + "params": [] + } + ] + } + ], + "l7": [ + { + "id": "", + "key": "highlight_point", + "type": "PointLayer", + "show": true, + "params": { + "zIndex": 0, + "blend": "additive" + }, + "methods": [ + { + "name": "shape", + "params": [ + "map_selected" + ] + }, + { + "name": "size", + "params": [ + 15 + ] + }, + { + "name": "style", + "params": [ + { + "offsets": [ + 0, + 0 + ] + } + ] + } + ] + } + ], + "mapbox": [ + { + "id": "point", + "key": "point", + "type": "symbol", + "minzoom": 0, + "maxzoom": 24, + "filter": [ + "in", + "type", + "", + "online", + "error", + "offline", + "lowVoltage", + "to_punch", + "punched" + ], + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(14, 139, 90, 1)", + "text-halo-width": 2, + "text-opacity": [ + "step", + [ + "zoom" + ], + 0, + 13, + 1 + ] + }, + "layout": { + "icon-image": [ + "match", + [ + "get", + "type" + ], + "YSBZ", + "rainBengZhan_icon", + "WSBZ", + "sewageBenZhan_icon", + "combineBengZhan", + "combineBengZhan_icon", + "sewageFactory", + "sewageFactory_icon", + "waterLoging", + "waterLoging_icon", + "waterCourse", + "waterCourse_icon", + "rainStation", + "rainStation_icon", + "origine", + "origine_icon", + "spongeFacility", + "spongeFacility_icon", + "pipeMonitor", + "pipeMonitor_icon", + "waterFactory", + "waterFactory_icon", + "ysbz" + ], + "text-allow-overlap": true, + "icon-allow-overlap": true, + "icon-anchor": "center", + "icon-size": 0.5, + "text-field": "{name}", + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-size": 16, + "text-line-height": 3, + "text-anchor": "bottom", + "text-max-width": 50, + "text-offset": [ + 0, + 3 + ] + }, + "mType": "geojson" + } + ], + "orders": [ + [ + "newfiber-XYZLayer" + ], + [ + "poi_label" + ], + [ + "place_label_city" + ], + [ + "road_major_label" + ], + [ + "place_label_other" + ], + [ + "point" + ] + ], + "filter": {} +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.json b/public/static/libs/mapbox/style/sprite/sprite6.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.png b/public/static/libs/mapbox/style/sprite/sprite6.png new file mode 100644 index 0000000..92820e0 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.png Binary files differ diff --git a/public/static/libs/mapbox/style/sprite/sprite6@2x.json b/public/static/libs/mapbox/style/sprite/sprite6@2x.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6@2x.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6@2x.png b/public/static/libs/mapbox/style/sprite/sprite6@2x.png new file mode 100644 index 0000000..92820e0 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6@2x.png Binary files differ diff --git a/src/api/informationManagement.js b/src/api/informationManagement.js index 2f27dd1..3c147eb 100644 --- a/src/api/informationManagement.js +++ b/src/api/informationManagement.js @@ -8,3 +8,59 @@ params: query, }); } +// 获取海绵一张图泵站信息 +export function oneMapFacilityPumpList(params) { + return request({ + url: `/business/facilityPump/list`, + method: 'get', + params, + }); +} +// 获取污水厂信息管理列表 +export function haiMianfacilitySewagePage(params) { + return request({ + url: `/business/facilitySewage/list`, + method: 'get', + params, + }); +} +// 易涝点数据 +export function waterloggingPointList(query) { + return request({ + url: '/business/preventFlood/waterloggingPoint/list', + method: 'get', + params: query, + }); +} +// 海绵设施 +export function queryProjectStation(data) { + return request({ + url: '/business/projectInfoNew/queryProjectStation', + method: 'post', + data: data, + }); +} +// 获取所有站点设备 +export function getStationList(query) { + return request({ + url: '/business/rtuSiteInfo/list', + method: 'get', + params: query, + }); +} +// 排水防涝一屏概览 物联感知-雨量监测-雨量数据采集 +export function realtimeRainfallStatistics(query) { + return request({ + url: '/business/preventFlood/oneMap/rtuSite/realtimeRainfallStatistics', + method: 'get', + params: query, + }); +} +// // 供水厂-搜索 +// export function waterCompPage(query) { +// return request({ +// url: '/scada/waterPlantInfo/page', +// method: 'get', +// params: query, +// }); +// } diff --git a/src/views/xuncha/gisCommonPage/newFiberMapBox.vue b/src/views/xuncha/gisCommonPage/newFiberMapBox.vue index 7671774..247a38e 100644 --- a/src/views/xuncha/gisCommonPage/newFiberMapBox.vue +++ b/src/views/xuncha/gisCommonPage/newFiberMapBox.vue @@ -283,6 +283,7 @@ list.forEach( (i) => i.data && + i.data.features && i.data.features.forEach((a) => { if (!!!a || !!!a.properties) return; a.properties.type = a.properties.type || i.layername; diff --git a/public/static/libs/mapbox/style/HaiMianScreen.json b/public/static/libs/mapbox/style/HaiMianScreen.json new file mode 100644 index 0000000..5e2b390 --- /dev/null +++ b/public/static/libs/mapbox/style/HaiMianScreen.json @@ -0,0 +1,206 @@ +{ + "params": { + "basemap": "https://supermap2.wh-nf.cn:8090/bm", + "mvt": "https://supermap0.wh-nf.cn:8090/vt", + "sprites": [ + "static/libs/mapbox/style/sprite/sprite6" + ], + "init": { + "center": [ + 114.342, + 34.802 + ], + "zoom": 11.5, + "pitch": 0, + "style": "/static/libs/mapbox/style/customs/whiteMapStyle.json" + }, + "l7": { + "images": [ + { + "name": "02", + "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg" + }, + { + "name": "map_selected", + "url": "/static/libs/mapbox/style/sprite/map_selected.png" + } + ] + } + }, + "ogc": [ + { + "id": "newfiber-XYZLayer", + "type": "XYZLayer", + "params": { + "id": "newfiber-XYZLayer", + "url": "https://t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=a603e07a17766447f9e74f14c5454efa", + "subdomains": [ + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7" + ], + "minZoom": 1, + "maxZoom": 19, + "tileType": "" + }, + "methods": [ + { + "name": "addTo", + "params": [ + "''||map" + ] + }, + { + "name": "hide", + "params": [] + } + ] + } + ], + "l7": [ + { + "id": "", + "key": "highlight_point", + "type": "PointLayer", + "show": true, + "params": { + "zIndex": 0, + "blend": "additive" + }, + "methods": [ + { + "name": "shape", + "params": [ + "map_selected" + ] + }, + { + "name": "size", + "params": [ + 15 + ] + }, + { + "name": "style", + "params": [ + { + "offsets": [ + 0, + 0 + ] + } + ] + } + ] + } + ], + "mapbox": [ + { + "id": "point", + "key": "point", + "type": "symbol", + "minzoom": 0, + "maxzoom": 24, + "filter": [ + "in", + "type", + "", + "online", + "error", + "offline", + "lowVoltage", + "to_punch", + "punched" + ], + "paint": { + "text-color": "rgba(255, 255, 255, 1)", + "text-halo-color": "rgba(14, 139, 90, 1)", + "text-halo-width": 2, + "text-opacity": [ + "step", + [ + "zoom" + ], + 0, + 13, + 1 + ] + }, + "layout": { + "icon-image": [ + "match", + [ + "get", + "type" + ], + "YSBZ", + "rainBengZhan_icon", + "WSBZ", + "sewageBenZhan_icon", + "combineBengZhan", + "combineBengZhan_icon", + "sewageFactory", + "sewageFactory_icon", + "waterLoging", + "waterLoging_icon", + "waterCourse", + "waterCourse_icon", + "rainStation", + "rainStation_icon", + "origine", + "origine_icon", + "spongeFacility", + "spongeFacility_icon", + "pipeMonitor", + "pipeMonitor_icon", + "waterFactory", + "waterFactory_icon", + "ysbz" + ], + "text-allow-overlap": true, + "icon-allow-overlap": true, + "icon-anchor": "center", + "icon-size": 0.5, + "text-field": "{name}", + "text-font": [ + "KlokanTech Noto Sans Regular" + ], + "text-size": 16, + "text-line-height": 3, + "text-anchor": "bottom", + "text-max-width": 50, + "text-offset": [ + 0, + 3 + ] + }, + "mType": "geojson" + } + ], + "orders": [ + [ + "newfiber-XYZLayer" + ], + [ + "poi_label" + ], + [ + "place_label_city" + ], + [ + "road_major_label" + ], + [ + "place_label_other" + ], + [ + "point" + ] + ], + "filter": {} +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.json b/public/static/libs/mapbox/style/sprite/sprite6.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6.png b/public/static/libs/mapbox/style/sprite/sprite6.png new file mode 100644 index 0000000..92820e0 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6.png Binary files differ diff --git a/public/static/libs/mapbox/style/sprite/sprite6@2x.json b/public/static/libs/mapbox/style/sprite/sprite6@2x.json new file mode 100644 index 0000000..3406e12 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6@2x.json @@ -0,0 +1,122 @@ +{ + "hsj": { + "x": 0, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "wsj": { + "x": 30, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "ysj": { + "x": 60, + "y": 0, + "width": 30, + "height": 30, + "pixelRatio": 1, + "sdf": false + }, + "origine_icon": { + "x": 90, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainStation_icon": { + "x": 126, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "spongeFacility_icon": { + "x": 162, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterFactory_icon": { + "x": 198, + "y": 0, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterLoging_icon": { + "x": 0, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "rainBengZhan_icon": { + "x": 36, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "combineBengZhan_icon": { + "x": 72, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageBenZhan_icon": { + "x": 108, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "sewageFactory_icon": { + "x": 144, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "waterCourse_icon": { + "x": 180, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "pipeMonitor_icon": { + "x": 216, + "y": 40, + "width": 36, + "height": 40, + "pixelRatio": 1, + "sdf": false + }, + "map_selected": { + "x": 0, + "y": 80, + "width": 48, + "height": 48, + "pixelRatio": 1, + "sdf": false + } +} \ No newline at end of file diff --git a/public/static/libs/mapbox/style/sprite/sprite6@2x.png b/public/static/libs/mapbox/style/sprite/sprite6@2x.png new file mode 100644 index 0000000..92820e0 --- /dev/null +++ b/public/static/libs/mapbox/style/sprite/sprite6@2x.png Binary files differ diff --git a/src/api/informationManagement.js b/src/api/informationManagement.js index 2f27dd1..3c147eb 100644 --- a/src/api/informationManagement.js +++ b/src/api/informationManagement.js @@ -8,3 +8,59 @@ params: query, }); } +// 获取海绵一张图泵站信息 +export function oneMapFacilityPumpList(params) { + return request({ + url: `/business/facilityPump/list`, + method: 'get', + params, + }); +} +// 获取污水厂信息管理列表 +export function haiMianfacilitySewagePage(params) { + return request({ + url: `/business/facilitySewage/list`, + method: 'get', + params, + }); +} +// 易涝点数据 +export function waterloggingPointList(query) { + return request({ + url: '/business/preventFlood/waterloggingPoint/list', + method: 'get', + params: query, + }); +} +// 海绵设施 +export function queryProjectStation(data) { + return request({ + url: '/business/projectInfoNew/queryProjectStation', + method: 'post', + data: data, + }); +} +// 获取所有站点设备 +export function getStationList(query) { + return request({ + url: '/business/rtuSiteInfo/list', + method: 'get', + params: query, + }); +} +// 排水防涝一屏概览 物联感知-雨量监测-雨量数据采集 +export function realtimeRainfallStatistics(query) { + return request({ + url: '/business/preventFlood/oneMap/rtuSite/realtimeRainfallStatistics', + method: 'get', + params: query, + }); +} +// // 供水厂-搜索 +// export function waterCompPage(query) { +// return request({ +// url: '/scada/waterPlantInfo/page', +// method: 'get', +// params: query, +// }); +// } diff --git a/src/views/xuncha/gisCommonPage/newFiberMapBox.vue b/src/views/xuncha/gisCommonPage/newFiberMapBox.vue index 7671774..247a38e 100644 --- a/src/views/xuncha/gisCommonPage/newFiberMapBox.vue +++ b/src/views/xuncha/gisCommonPage/newFiberMapBox.vue @@ -283,6 +283,7 @@ list.forEach( (i) => i.data && + i.data.features && i.data.features.forEach((a) => { if (!!!a || !!!a.properties) return; a.properties.type = a.properties.type || i.layername; diff --git a/src/views/zhxxgl/informationManagement.vue b/src/views/zhxxgl/informationManagement.vue index 71fd95a..6e5e882 100644 --- a/src/views/zhxxgl/informationManagement.vue +++ b/src/views/zhxxgl/informationManagement.vue @@ -1,7 +1,7 @@