Fix #2003, improve comments

This commit is contained in:
Pieter Vander Vennet 2024-06-27 02:29:53 +02:00
parent de9691e723
commit 45235cab0f
2 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ export default class Constants {
/** /**
* API key for Maproulette * 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. * 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. * Using an empty string however does work for most actions, but will attribute all actions to the Superuser.
*/ */

View file

@ -210,7 +210,7 @@ export default class ThemeViewState implements SpecialVisualizationState {
const isDisplayed = QueryParameters.GetBooleanQueryParameter( const isDisplayed = QueryParameters.GetBooleanQueryParameter(
"overlay-" + rasterInfo.id, "overlay-" + rasterInfo.id,
rasterInfo.defaultState ?? true, rasterInfo.defaultState ?? true,
"Wether or not overlayer layer " + rasterInfo.id + " is shown" "Whether or not overlayer layer " + rasterInfo.id + " is shown"
) )
const state = { isDisplayed } const state = { isDisplayed }
overlayLayerStates.set(rasterInfo.id, state) overlayLayerStates.set(rasterInfo.id, state)
@ -220,8 +220,8 @@ export default class ThemeViewState implements SpecialVisualizationState {
} }
{ {
/* Setup the layout source /* Set up 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 * 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)) { 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.zoom.map((z) => Math.max(Math.floor(z), 0)),
this.mapProperties, 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) return new SummaryTileSourceRewriter(summaryTileSource, this.layerState.filteredLayers)