From 5d17a60f704cd141ddfa4e135258d0d4d5d1eb69 Mon Sep 17 00:00:00 2001 From: YANGDL <114714267@qq.com> Date: 星期三, 03 三月 2021 17:39:46 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/components/helpers/ServiceLayerHelper.js | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/components/helpers/ServiceLayerHelper.js b/src/components/helpers/ServiceLayerHelper.js index 6d52e2d..1b7773f 100644 --- a/src/components/helpers/ServiceLayerHelper.js +++ b/src/components/helpers/ServiceLayerHelper.js @@ -70,6 +70,11 @@ } } + /** + * 璇锋眰wfs鏁版嵁 + * @param url + * @param item + */ loadGeojsonLayer (url, item) { var matches = this.regex.exec(url) var matchValue = item[matches[1]] @@ -86,24 +91,25 @@ } /** - * 鍔犺浇鐐规暟鎹� - * @param res - */ - loadGeojson (res, layer) { + * 鍔犺浇gis server杩斿洖鐨刧eoson鏁版嵁鍒板湴鍥句腑灞曠ず + * @param res + */ + loadGeojson (res, opt) { var that = this - var icon = layer.icon + var icon = opt.icon const featureGroup = that.L.featureGroup().addTo(that.map) const geojson = that.L.geoJSON(res.features, { style: function (feature) { return { fill: true, - weight: 2, + weight: 3, fillColor: '#73b2ff', color: '#73b2ff', fillOpacity: 0.2, - opacity: 1, - dashArray: '10,4', - dashSpeed: -10 + opacity: 1 + // , + // dashArray: '10,4', + // dashSpeed: -10 } }, pointToLayer: function (geoJsonPoint, latlng) { -- Gitblit v1.8.0