Skip to content

Commit

Permalink
Fallback to GetCapabilities WMS request also if GetProjectSettings re…
Browse files Browse the repository at this point in the history
…quest returns non-200 status code
  • Loading branch information
manisandro committed Mar 4, 2024
1 parent 630d0cf commit bca57df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/ServiceLayerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,9 @@ const ServiceLayerUtils = {
} else {
ServiceLayerUtils.getCapabilities(serviceUrl, {SERVICE: 'WMS', REQUEST: 'GetCapabilities'}).then(resolve);
}
}).catch(reject);
}).catch(e => {
ServiceLayerUtils.getCapabilities(serviceUrl, {SERVICE: 'WMS', REQUEST: 'GetCapabilities'}).then(resolve).catch(reject);
});
});
},
getWFSCapabilies(serviceUrl) {
Expand Down

0 comments on commit bca57df

Please sign in to comment.