forked from MapComplete/MapComplete
Fix back button on mobile devices
This commit is contained in:
parent
2bb50561fe
commit
f8b68aee7a
2 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue