Skip to content

Commit

Permalink
Unconditionally show markers button
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed May 22, 2022
1 parent f2b3194 commit d1268fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/_js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
this.mapFloors = [];
this.markersLayers = [];
this.showMarkers = true;
this.options = {}
this.options = {};
}
const URL_PREFIX = 'https://tibiamaps.github.io/tibia-map-data/';
// `KNOWN_TILES` is a placeholder for the whitelist of known tiles:
Expand Down Expand Up @@ -375,10 +375,10 @@
}).addTo(map);
_this._showHoverTile();

L.MarkersButton.btns = L.markersButton({
map: _this
}).addTo(map);
if (_this.options.markersEnabled === 'true') {
L.MarkersButton.btns = L.markersButton({
map: _this
}).addTo(map);
_this._loadMarkers();
}
};
Expand Down

0 comments on commit d1268fc

Please sign in to comment.