Skip to content

Commit

Permalink
Slight adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMuehlhauserNRCan committed Dec 3, 2024
1 parent 31f3a93 commit 9b8f0fc
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 @@ -1057,7 +1057,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 @@ -926,7 +926,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 @@ -936,7 +936,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 9b8f0fc

Please sign in to comment.