function MaplibreTileBoundaries()

in public/assets/maplibre/maplibre-gl-tile-boundaries.js [54:69]


function MaplibreTileBoundaries(options) {
    if (!(this instanceof MaplibreTileBoundaries)) {
        throw new Error('MaplibreTileBoundaries needs to be called with the new keyword');
    }

    this.options = Object.assign({
        showTileBoundariesButton: true,
        tileBoundaries: false,
    }, options);

    this._tileBoundaries = this.options.tileBoundaries;
    this._toggle = new BoundariesButton({
        show: this.options.showTileBoundariesButton,
        onToggle: this.toggleTileBoundaries.bind(this)
    });
}