Skip to content

Commit

Permalink
AUS-4262 Fix broken map click popup
Browse files Browse the repository at this point in the history
  • Loading branch information
vjf committed Oct 17, 2024
1 parent 9f832cf commit cee3e53
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/app/cesium-map/csmap.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,14 @@ export class CsMapComponent implements AfterViewInit {
// we will use this to filter calls to the backend i.e. wmsMarkerPopup.do
let optProviderList = [];
for (const maplayer of mapClickInfo.clickedLayerList) {
for (const optFil of maplayer.filterCollection.optionalFilters) {
if (optFil.value !== null) {
if (optFil.type === 'OPTIONAL.PROVIDER') {
for (const [key, value] of Object.entries(optFil.value)) {
if (value === true) {
optProviderList.push(key); // key is the Provider e.g. sarigdata.pir.sa.gov.au
if (maplayer?.filterCollection?.optionalFilters) {
for (const optFil of maplayer.filterCollection.optionalFilters) {
if (optFil.value !== null) {
if (optFil.type === 'OPTIONAL.PROVIDER') {
for (const [key, value] of Object.entries(optFil.value)) {
if (value === true) {
optProviderList.push(key); // key is the Provider e.g. sarigdata.pir.sa.gov.au
}
}
}
}
Expand Down

0 comments on commit cee3e53

Please sign in to comment.