Skip to content

Commit

Permalink
Slight adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMuehlhauserNRCan committed Dec 5, 2024
1 parent cebabbf commit c66c509
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ export class MapEventProcessor extends AbstractEventProcessor {

let configLayerEntryConfig;
if (geoviewLayerConfig) {
configLayerEntryConfig = (geoviewLayerConfig as TypeGeoviewLayerConfig).listOfLayerEntryConfig.find(
configLayerEntryConfig = (geoviewLayerConfig as TypeGeoviewLayerConfig).listOfLayerEntryConfig?.find(
(nextEntryConfig: TypeLayerEntryConfig) => nextEntryConfig.layerId === pathArray[1]
);
for (let i = 2; i < pathArray.length; i++) {
Expand Down
4 changes: 3 additions & 1 deletion packages/geoview-core/src/geo/map/map-viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ export class MapViewer {
*
* @param {TypeDisplayLanguage} displayLanguage - The language to use (en, fr)
* @param {boolean} resetLayer - Optional flag to ask viewer to reload layers with the new localize language
* @returns {Promise<[void, void]>}
* @returns {Promise<void>}
*/
async setLanguage(displayLanguage: TypeDisplayLanguage, reloadLayers?: boolean | false): Promise<void> {
// If the language hasn't changed don't do anything
Expand All @@ -928,7 +928,9 @@ export class MapViewer {

// if flag is true, reload GeoCore layers
if (reloadLayers) {
// Reload just the Geocore Layers instead of the entire map
this.layer.reloadGeocoreLayers();
// this.reloadWithCurrentState();
}

// Emit language changed event
Expand Down

0 comments on commit c66c509

Please sign in to comment.