Docs: update types, reorder items

This commit is contained in:
Pieter Vander Vennet 2025-08-19 17:22:50 +02:00
parent a073b9de94
commit 145350bdbb
3 changed files with 8 additions and 8 deletions

View file

@ -81,6 +81,7 @@ export default class Validators {
new ColorValidator(), new ColorValidator(),
new DirectionValidator(), new DirectionValidator(),
new DistanceValidator(),
new SlopeValidator(), new SlopeValidator(),
new UrlValidator(), new UrlValidator(),
@ -107,7 +108,6 @@ export default class Validators {
new NameSuggestionIndexValidator(), new NameSuggestionIndexValidator(),
new DistanceValidator(),
] ]
private static _byType = Validators._byTypeConstructor() private static _byType = Validators._byTypeConstructor()

View file

@ -59,14 +59,14 @@ class SingleBackgroundHandler {
return return
} }
console.debug(
"Removing raster layer",
this._targetLayer.properties.id,
"map moved and not been used for",
SingleBackgroundHandler.DEACTIVATE_AFTER
)
try { try {
if (map.getLayer(<string>this._targetLayer.properties.id)) { if (map.getLayer(<string>this._targetLayer.properties.id)) {
console.debug(
"Removing raster layer",
this._targetLayer.properties.id,
"map moved and not been used for",
SingleBackgroundHandler.DEACTIVATE_AFTER
)
map.removeLayer(<string>this._targetLayer.properties.id) map.removeLayer(<string>this._targetLayer.properties.id)
} }
} catch (e) { } catch (e) {

View file

@ -7,7 +7,7 @@ export interface ShowDataLayerOptions {
/** /**
* Features to show * Features to show
*/ */
features: FeatureSource<Feature<Geometry, OsmTags>> features: FeatureSource<Feature<Geometry, Record<string, any> & {id: string}>>
/** /**
* Indication of the current selected element; overrides some filters. * Indication of the current selected element; overrides some filters.
* When a feature is tapped, the feature will be put in there * When a feature is tapped, the feature will be put in there