From ee37bbd6ecc74eda14bcf51d0df9dd0883c8d6d6 Mon Sep 17 00:00:00 2001 From: zksx <52799997+zksx@users.noreply.github.com> Date: Tue, 26 Sep 2023 14:47:55 -0700 Subject: [PATCH] attempted to fix symbols not displaying using hamburger function / initially loaded. No luck. --- src/geologic_features.sld | 86 ++++++++++++++++++++++++++++++++++----- src/js/AstroMap.js | 4 +- 2 files changed, 78 insertions(+), 12 deletions(-) diff --git a/src/geologic_features.sld b/src/geologic_features.sld index 7ef9ff5be..7b40b439e 100644 --- a/src/geologic_features.sld +++ b/src/geologic_features.sld @@ -1,21 +1,87 @@ - - + + - GeoStyler Demo + Global_Contacts - GeoStyler Demo - GeoStyler Demo + Global_Contacts - Rule 1 - + Certain + + Certain + + + + "ConType" + Certain + + + + + #000000 + 1 + round + butt + + + + + Approximate + + Approximate + + + + "ConType" + Approx + + + + + #000000 + 1 + round + butt + 5 4 + + + + + Internal + + Internal + + + + "ConType" + Internal + + + + + #000000 + 1 + round + butt + + + + + <all other values> + + <all other values> + + + #ff0000 - 5 + 1 + round + round - + - \ No newline at end of file + diff --git a/src/js/AstroMap.js b/src/js/AstroMap.js index 1f30f5aff..46c03e51b 100644 --- a/src/js/AstroMap.js +++ b/src/js/AstroMap.js @@ -307,14 +307,14 @@ export default L.Map.AstroMap = L.Map.extend({ if(featureCollections[i].features.length > 0) { // Set colors if available - let myStyle = i < colors.length ? {fillColor: colors[i], color: lightcolors[i]} : {}; + //let myStyle = i < colors.length ? {fillColor: colors[i], color: lightcolors[i]} : {}; // Wrap features let wrappedFeatures = this.cloneWestEast(featureCollections[i].features); this._geoLayers[i] = L.geoJSON(wrappedFeatures, { id: featureCollections[i].id, - style: myStyle + style: this.SLDStyler.getStyleFunction() }) this._geoLayers[i].on({click: this.handleClick}); // Add click listener -- GitLab