Skip to content

Commit

Permalink
Release version 0.2.13.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Jun 25, 2022
1 parent 82e9bce commit fef6472
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
14 changes: 5 additions & 9 deletions dist/mapbox-gl-indoorequal.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const commonPoi = {
}
};

const rank2Class = ["waste_basket", "information", "vending_machine"];
const rank2Class = ["waste_basket", "information", "vending_machine", "bench", "photo_booth", "ticket_validator"];

const layers = [
{
Expand Down Expand Up @@ -602,11 +602,11 @@ class IndoorEqual {
this.events = {};

if (this.map.isStyleLoaded()) {
this._addSource();
this._init();
this.setHeatmapVisible(opts.heatmap);
} else {
this.map.once('load', () => {
this._addSource();
this._init();
this.setHeatmapVisible(opts.heatmap);
});
}
Expand Down Expand Up @@ -723,9 +723,9 @@ class IndoorEqual {
}
}

_addSource() {
_init() {
this.source.addSource();
this._addLayers();
this.source.addLayers();
this._updateFilters();
this._updateLevelsDebounce = debounce__default["default"](this._updateLevels.bind(this), 1000);

Expand All @@ -737,10 +737,6 @@ class IndoorEqual {
});
}

_addLayers() {
this.source.addLayers();
}

_updateFilters() {
this.source.layers
.filter(layer => layer.type !== 'heatmap')
Expand Down
14 changes: 5 additions & 9 deletions dist/mapbox-gl-indoorequal.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const commonPoi = {
}
};

const rank2Class = ["waste_basket", "information", "vending_machine"];
const rank2Class = ["waste_basket", "information", "vending_machine", "bench", "photo_booth", "ticket_validator"];

const layers = [
{
Expand Down Expand Up @@ -595,11 +595,11 @@ class IndoorEqual {
this.events = {};

if (this.map.isStyleLoaded()) {
this._addSource();
this._init();
this.setHeatmapVisible(opts.heatmap);
} else {
this.map.once('load', () => {
this._addSource();
this._init();
this.setHeatmapVisible(opts.heatmap);
});
}
Expand Down Expand Up @@ -716,9 +716,9 @@ class IndoorEqual {
}
}

_addSource() {
_init() {
this.source.addSource();
this._addLayers();
this.source.addLayers();
this._updateFilters();
this._updateLevelsDebounce = debounce(this._updateLevels.bind(this), 1000);

Expand All @@ -730,10 +730,6 @@ class IndoorEqual {
});
}

_addLayers() {
this.source.addLayers();
}

_updateFilters() {
this.source.layers
.filter(layer => layer.type !== 'heatmap')
Expand Down
Loading

0 comments on commit fef6472

Please sign in to comment.