Improved www.ttss.krakow.pl
Jacek Kowalski
2020-11-02 01853e8919f80dd24d7864b2f5a4232cf475b5dc
[map] Fix removing currently selected feature
1 files modified
2 ■■■ changed files
map.js 2 ●●● patch | view | raw | blame | history
map.js
@@ -322,10 +322,10 @@
    },
    _removeFeature: function(feature) {
        if(!feature) return;
        this.source.removeFeature(feature);
        if(this.selectedFeatureId === feature.getId()) {
            this.deselect();
        }
        this.source.removeFeature(feature);
    },
    loadFullData: function(data) {
        var self = this;