openlayers-indoorequal
Use indoor= with OpenLayers.
Install openlayers-indoorequal.
npm install --save openlayers-indoorequal
Then add the following code to your openlayers map:
import Map from 'ol/Map';
import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
import IndoorEqual, { LevelControl } from 'openlayers-indoorequal';
import 'openlayers-indoorequal/openlayers-indoorequal.css';
const apiKey = '<insert your api key here>';
const map = new Map({
target: 'map',
layers: [
new TileLayer({
source: new OSM(),
}),
],
});
const indoorEqual = new IndoorEqual(map, { apiKey });
const control = new LevelControl(indoorEqual);
map.addControl(control);