From 9c143649a2819d0ae2501b08067e303b9d0e70d0 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 25 Jan 2021 10:29:56 +0100 Subject: [PATCH] Reset style GeoJSON preview example --- examples/web-converter/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/web-converter/main.js b/examples/web-converter/main.js index f05a13e..54628c1 100644 --- a/examples/web-converter/main.js +++ b/examples/web-converter/main.js @@ -116,10 +116,10 @@ geojsonLayer = L.geoJSON(geojson, { style: feature => { return { - color: feature.properties.color, - fillColor: feature.properties.fill, - fillOpacity: feature.properties['fill-opacity'], - weight: feature.properties['stroke-width'], + color: feature.properties.landxmlColor, + fillColor: feature.properties.landxmlColor, + fillOpacity: 0.5, + weight: 1, } }, onEachFeature: (f, l) => { @@ -141,7 +141,7 @@ if(feature.geometry.type !== 'Point') { // Style selected selectedFeature.setStyle({ - 'fillColor': 'blue' + 'fillOpacity': 0.9 }) }