Skip to content
Snippets Groups Projects
Commit cf2afe11 authored by zksx's avatar zksx
Browse files

symbols are being added on initial load/ load more/ and when the multi select...

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
parent 43889c4e
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,8 @@ import L from "leaflet"; ...@@ -2,7 +2,8 @@ import L from "leaflet";
import "proj4leaflet"; import "proj4leaflet";
import AstroProj from "./AstroProj"; import AstroProj from "./AstroProj";
import LayerCollection from "./LayerCollection"; import LayerCollection from "./LayerCollection";
import SLDText from "../geologic_features.sld"; import SLDText from "../slds/Global_Contacts.sld";
/** /**
* @class AstroMap * @class AstroMap
...@@ -239,6 +240,7 @@ export default L.Map.AstroMap = L.Map.extend({ ...@@ -239,6 +240,7 @@ export default L.Map.AstroMap = L.Map.extend({
if(this._geoLayers[i] && this._geoLayers[i].options.id === collectionId){ if(this._geoLayers[i] && this._geoLayers[i].options.id === collectionId){
let wrappedFeatures = this.cloneWestEast(myFeatures); let wrappedFeatures = this.cloneWestEast(myFeatures);
this._geoLayers[i].addData(wrappedFeatures); 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({ ...@@ -322,6 +324,7 @@ export default L.Map.AstroMap = L.Map.extend({
// Add layers to map if they should be visible // Add layers to map if they should be visible
if(featureCollections[i].id === visibleCollectionId) { if(featureCollections[i].id === visibleCollectionId) {
this._geoLayers[i].addTo(this); this._geoLayers[i].addTo(this);
this.SLDStyler.symbolize_with_icons(this._geoLayers[i], this);
} }
this._footprintCollection[title] = this._geoLayers[i]; this._footprintCollection[title] = this._geoLayers[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment