Fix back button on mobile devices

This commit is contained in:
Pieter Vander Vennet 2021-03-12 14:14:56 +01:00
parent 2bb50561fe
commit f8b68aee7a
2 changed files with 5 additions and 2 deletions

View file

@ -18,9 +18,7 @@ export default class SelectedFeatureHandler {
this._featureSource = featureSource;
const self = this;
hash.addCallback(h => {
console.log("Hash is now ", h)
if (h === undefined || h === "") {
console.error("Deselecting feature...")
selectedFeature.setData(undefined);
}else{
self.selectFeature();