| 
					
				 | 
			
			
				@@ -47,7 +47,7 @@ CityLandAction.prototype = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // this.context.clicks[this.id] = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.drawMultiPolygon.show() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.context.currentMap.addLayer(this.obj.layerData.layer) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.tempVectorLayer.setVisible(true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.context.getSldStyleSign(this.obj.wmsData.params.STYLE) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -61,7 +61,9 @@ CityLandAction.prototype = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.tempVectorLayer.setVisible(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.context.currentMap.removeLayer(this.obj.layerData.layer) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for(let layer of this.obj.layerData.layer){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.context.currentMap.removeLayer(layer) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         console.log("drawMultiPolygon close") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.drawMultiPolygon.close() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         console.log("tempVectorLayer cleared") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -268,7 +270,6 @@ function CityLand(opt){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'VERSION': '1.0.0', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            'LAYER': "wuhan:p_crop", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'STYLE': "wuhan:city_land", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'TILEMATRIX': gridNames, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'TILEMATRIXSET': gridsetName, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -277,16 +278,18 @@ function CityLand(opt){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.layerData = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        layer : null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        source : null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        select : null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        layer : [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        source : [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         always : false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 CityLand.prototype = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    layerNames:['wuhan:p_land_banan','wuhan:p_land_beibei','wuhan:p_land_bishan','wuhan:p_land_changshou','wuhan:p_land_chengkou','wuhan:p_land_dadukou','wuhan:p_land_dazu','wuhan:p_land_dianjiang','wuhan:p_land_fengdu','wuhan:p_land_fengjie','wuhan:p_land_fuling','wuhan:p_land_hechuan','wuhan:p_land_jiangbei','wuhan:p_land_jiangjin','wuhan:p_land_jiulongpo','wuhan:p_land_kaizhou','wuhan:p_land_liangping','wuhan:p_land_nanan','wuhan:p_land_nanchuan','wuhan:p_land_pengshui','wuhan:p_land_qianjiang','wuhan:p_land_qijiang','wuhan:p_land_qiuyang','wuhan:p_land_rongchang','wuhan:p_land_shapingba','wuhan:p_land_shizhu','wuhan:p_land_tongliang','wuhan:p_land_tongnan','wuhan:p_land_wanzhou','wuhan:p_land_wulong','wuhan:p_land_wushan','wuhan:p_land_wuxi','wuhan:p_land_xiushan','wuhan:p_land_yongchuan','wuhan:p_land_yubei','wuhan:p_land_yunyang','wuhan:p_land_yuzhong','wuhan:p_land_zhong','wuhan:p_crop'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getTileLayer(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.getWMTS() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for(let layer of this.layerNames){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.getWMTS(layer) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     },getWMS(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.layerData.source = new ol.source.ImageWMS({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ratio: 1, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -294,7 +297,6 @@ CityLand.prototype = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             params: {'FORMAT': this.wmsData.params['FORMAT'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'VERSION': '1.1.1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 "STYLES": '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                "LAYERS": 'wuhan:p_crop', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 "exceptions": 'application/vnd.ogc.se_inimage', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -304,20 +306,20 @@ CityLand.prototype = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             minZoom: 7, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             maxZoom: 30 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    },getWMTS(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    },getWMTS(typeName){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var resolutions = [0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125, 0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 6.866455078125E-4, 3.4332275390625E-4, 1.71661376953125E-4, 8.58306884765625E-5, 4.291534423828125E-5, 2.1457672119140625E-5, 1.0728836059570312E-5, 5.364418029785156E-6, 2.682209014892578E-6, 1.341104507446289E-6, 6.705522537231445E-7, 3.3527612686157227E-7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var baseUrl = this.wmsData.url; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var baseParams = ['VERSION','LAYER','STYLE','TILEMATRIX','TILEMATRIXSET','SERVICE','FORMAT']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var url = baseUrl+'?' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var baseParams = ['VERSION','STYLE','TILEMATRIX','TILEMATRIXSET','SERVICE','FORMAT']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var url = baseUrl+'?LAYER='+ typeName +'&' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (var param in this.wmsData.params) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (baseParams.indexOf(param.toUpperCase()) < 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 url = url + param + '=' + this.wmsData.params[param] + '&'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         url = url.slice(0, -1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.layerData.source = new ol.source.WMTS({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let source = new ol.source.WMTS({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             url: url, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            layer: this.wmsData.params['LAYER'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            layer: typeName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             matrixSet: this.wmsData.params['TILEMATRIXSET'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             format: this.wmsData.params['FORMAT'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             projection: this.wmsData.projection, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -330,14 +332,23 @@ CityLand.prototype = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             style: this.wmsData.params['STYLE'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             wrapX: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.layerData.source.push(source); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.layerData.layer = new ol.layer.Tile({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            source: this.layerData.source, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.layerData.layer.push(new ol.layer.Tile({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            source: source, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             zIndex: 2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             minZoom: 7, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             maxZoom: 30 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        })); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    loadWMTS(tableNames){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for(let layer of this.obj.layerData.layer){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for(let tableName of tableNames){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                asd12312" " 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.context.currentMap.addLayer(layer) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |