| | |
| | | var untiled = new ol.layer.Image({ |
| | | source: new ol.source.ImageWMS({ |
| | | ratio: 1, |
| | | url: default_system_params.geoserver_url_predix + 'geoserver/konglu_58/wms', |
| | | url: default_system_params.geoserver_url_predix + 'geoserver/konglu_demo/wms', |
| | | params: { |
| | | 'FORMAT': 'image/png', |
| | | 'VERSION': '1.1.1', |
| | | "STYLES": 'polyline_road_pm25', |
| | | "LAYERS": 'konglu_58:vis_roadsection_' + getFormParams().querytype_, |
| | | "LAYERS": 'konglu_demo:vis_roadsection_' + getFormParams().querytype_, |
| | | "exceptions": 'application/vnd.ogc.se_inimage', |
| | | "BBOX": '120.84686279296875,30.25909423828125,121.98394775390625,32.00592041015625' |
| | | } |
| | |
| | | var tiled = new ol.layer.Tile({ |
| | | visible: false, |
| | | source: new ol.source.TileWMS({ |
| | | url: default_system_params.geoserver_url_predix + 'geoserver/konglu_58/wms', |
| | | url: default_system_params.geoserver_url_predix + 'geoserver/konglu_demo/wms', |
| | | params: { |
| | | 'FORMAT': 'image/png', |
| | | 'VERSION': '1.1.1', |
| | | tiled: true, |
| | | "STYLES": 'polyline_road_pm25', |
| | | "LAYERS": 'konglu_58:vis_roadsection_' + getFormParams().querytype_, |
| | | "LAYERS": 'konglu_demo:vis_roadsection_' + getFormParams().querytype_, |
| | | "exceptions": 'application/vnd.ogc.se_inimage', |
| | | "BBOX": '120.84686279296875,30.25909423828125,121.98394775390625,32.00592041015625', |
| | | tilesOrigin: 120 + "," + 30 |
| | |
| | | 'FILTER': null, |
| | | 'CQL_FILTER': null, |
| | | 'FEATUREID': null, |
| | | "LAYERS": 'konglu_58:vis_roadsection_' + formPrams.querytype_, |
| | | "LAYERS": 'konglu_demo:vis_roadsection_' + formPrams.querytype_, |
| | | "viewparams": 'userid:'+userid+';regiontype:1005;datetime:' + formPrams.datatime_+';querytype:'+formPrams.querytype_, |
| | | }; |
| | | if (filter.replace(/^\s\s*/, '').replace(/\s\s*$/, '') != "") { |