diff --git a/README.md b/README.md index 5789685..ca2400d 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ A few configuration options are available by editing the `config.json` file: - `mapTilerApiKey`: the [MapTiler](https://www.maptiler.com/) API Key - `tilesUrl`: The URL of the indoor= tileJSON - `indoorEqualApiKey`: the [indoor=](https://indoorequal.com/) API Key (optional if you don't use the official indoor= tileJSON +- `indoorMinZoom`: The minimum level of zoom when the indoor features are displayed ## Remote Command API diff --git a/config.json b/config.json index 7a566fb..fc65a66 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,6 @@ { "mapTilerApiKey": "T7HQrA4a6k5eOxDGD6qp", "indoorEqualApiKey": "iek_ScxQpnty0VWJIvBqa3S6su4XGIiQ", - "tilesUrl": "https://tiles.indoorequal.org/" + "tilesUrl": "https://tiles.indoorequal.org/", + "indoorMinZoom": 16 } diff --git a/js/app.vue b/js/app.vue index 3eb08fc..e6e1b61 100644 --- a/js/app.vue +++ b/js/app.vue @@ -29,7 +29,7 @@ /> import { MglMarker } from 'vue-mapbox/dist/vue-mapbox.umd'; -import { tilesUrl, indoorEqualApiKey } from '../config.json'; +import { tilesUrl, indoorEqualApiKey, indoorMinZoom } from '../config.json'; import IndoorDiscover from './discover'; import IndoorMap from './map'; import IndoorPoi from './poi'; @@ -135,7 +135,7 @@ export default { poi: '', poiCoordinates: [], menu: null, - minZoom: 17, + indoorMinZoom: indoorMinZoom, newMapBounds: [], newMapCenter: {}, sprite: null, diff --git a/js/toolbar.vue b/js/toolbar.vue index ecc2671..e63a492 100644 --- a/js/toolbar.vue +++ b/js/toolbar.vue @@ -93,7 +93,7 @@ export default { required: true }, - minZoom: { + indoorMinZoom: { type: Number, required: true }, @@ -109,7 +109,7 @@ export default { computed: { editDisabled() { - return this.mapZoom < this.minZoom; + return this.mapZoom < this.indoorMinZoom; }, JOSMParams() {