From cf2afe11d7e5c226e6baf30b93479b19096f95fe Mon Sep 17 00:00:00 2001 From: zksx <52799997+zksx@users.noreply.github.com> Date: Fri, 29 Sep 2023 08:25:28 -0700 Subject: [PATCH] symbols are being added on initial load/ load more/ and when the multi select box is clicked on. Still noit working when the control layers box is used --- src/js/AstroMap.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/AstroMap.js b/src/js/AstroMap.js index 46c03e51b..09e92188b 100644 --- a/src/js/AstroMap.js +++ b/src/js/AstroMap.js @@ -2,7 +2,8 @@ import L from "leaflet"; import "proj4leaflet"; import AstroProj from "./AstroProj"; import LayerCollection from "./LayerCollection"; -import SLDText from "../geologic_features.sld"; +import SLDText from "../slds/Global_Contacts.sld"; + /** * @class AstroMap @@ -239,6 +240,7 @@ export default L.Map.AstroMap = L.Map.extend({ if(this._geoLayers[i] && this._geoLayers[i].options.id === collectionId){ let wrappedFeatures = this.cloneWestEast(myFeatures); this._geoLayers[i].addData(wrappedFeatures); + this.SLDStyler.symbolize_with_icons(this._geoLayers[i], this); } } }, @@ -322,6 +324,7 @@ export default L.Map.AstroMap = L.Map.extend({ // Add layers to map if they should be visible if(featureCollections[i].id === visibleCollectionId) { this._geoLayers[i].addTo(this); + this.SLDStyler.symbolize_with_icons(this._geoLayers[i], this); } this._footprintCollection[title] = this._geoLayers[i]; -- GitLab