From 45235cab0f528b885fb1dea674d6c3a1584577b9 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 27 Jun 2024 02:29:53 +0200 Subject: [PATCH] Fix #2003, improve comments --- src/Models/Constants.ts | 2 +- src/Models/ThemeViewState.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Models/Constants.ts b/src/Models/Constants.ts index 1557cbceaf..6c35984ffa 100644 --- a/src/Models/Constants.ts +++ b/src/Models/Constants.ts @@ -10,7 +10,7 @@ export default class Constants { /** * API key for Maproulette * - * Currently there is no user-friendly way to get the user's API key. + * There is no user-friendly way to get the user's API key currently. * See https://github.com/maproulette/maproulette2/issues/476 for more information. * Using an empty string however does work for most actions, but will attribute all actions to the Superuser. */ diff --git a/src/Models/ThemeViewState.ts b/src/Models/ThemeViewState.ts index e34a4f4393..d842016b80 100644 --- a/src/Models/ThemeViewState.ts +++ b/src/Models/ThemeViewState.ts @@ -210,7 +210,7 @@ export default class ThemeViewState implements SpecialVisualizationState { const isDisplayed = QueryParameters.GetBooleanQueryParameter( "overlay-" + rasterInfo.id, rasterInfo.defaultState ?? true, - "Wether or not overlayer layer " + rasterInfo.id + " is shown" + "Whether or not overlayer layer " + rasterInfo.id + " is shown" ) const state = { isDisplayed } overlayLayerStates.set(rasterInfo.id, state) @@ -220,8 +220,8 @@ export default class ThemeViewState implements SpecialVisualizationState { } { - /* Setup the layout source - * A bit tricky, as this is heavily intertwined with the 'changes'-element, which generate a stream of new and changed features too + /* Set up the layout source + * A bit tricky, as this is heavily intertwined with the 'changes'-element, which generates a stream of new and changed features too */ if (this.layout.layers.some((l) => l._needsFullNodeDatabase)) { @@ -704,7 +704,7 @@ export default class ThemeViewState implements SpecialVisualizationState { this.mapProperties.zoom.map((z) => Math.max(Math.floor(z), 0)), this.mapProperties, { - isActive: this.mapProperties.zoom.map((z) => z <= maxzoom), + isActive: this.mapProperties.zoom.map((z) => z < maxzoom), } ) return new SummaryTileSourceRewriter(summaryTileSource, this.layerState.filteredLayers)