From 144f33b870653829a8ae29486c652250a51a63e3 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期三, 21 四月 2021 10:51:22 +0800
Subject: [PATCH] 废汽实时数据/小时数居

---
 src/components/LayerController/service/WfsLayerService.js |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/components/LayerController/service/WfsLayerService.js b/src/components/LayerController/service/WfsLayerService.js
index f00eaeb..cb0a4bf 100644
--- a/src/components/LayerController/service/WfsLayerService.js
+++ b/src/components/LayerController/service/WfsLayerService.js
@@ -3,6 +3,7 @@
  */
 import { STYLES } from '../../../conf/Constants'
 import AjaxUtils from '../../../utils/AjaxUtils'
+import { setZIndex } from '../../../utils/utils'
 
 class WfsLayerService {
   constructor (config) {
@@ -10,8 +11,8 @@
     this.params = {
       version: '1.0.0',
       REQUEST: 'getfeature',
-      OUTPUTFORMAT: 'json',
-      maxFeatures: 20000
+      OUTPUTFORMAT: 'json'
+      // maxFeatures: 20000
     }
     this.popupComp = window.popupComp
     this.L = window.L
@@ -35,6 +36,8 @@
 
   draw (features) {
     const icon = this.config.icon
+    const styles = this.config.styles
+    Object.assign(STYLES, styles)
     const geojsonLayer = this.L.geoJSON(features, {
       style: function (feature) {
         return {
@@ -73,7 +76,7 @@
           .on('mouseover', (e) => this.mouseOverListener(e, layer)).on('mouseout', (e) => this.mouseOutListener(e, layer))
       }
     }).addTo(this.layer)
-    window.layerFactory.setZIndex(geojsonLayer)
+    setZIndex(geojsonLayer)
   }
 
   mouseOverListener (e, layer) {

--
Gitblit v1.8.0