forked from MapComplete/MapComplete
Docs: update types, reorder items
This commit is contained in:
parent
a073b9de94
commit
145350bdbb
3 changed files with 8 additions and 8 deletions
|
@ -81,6 +81,7 @@ export default class Validators {
|
|||
new ColorValidator(),
|
||||
|
||||
new DirectionValidator(),
|
||||
new DistanceValidator(),
|
||||
new SlopeValidator(),
|
||||
|
||||
new UrlValidator(),
|
||||
|
@ -107,7 +108,6 @@ export default class Validators {
|
|||
|
||||
new NameSuggestionIndexValidator(),
|
||||
|
||||
new DistanceValidator(),
|
||||
]
|
||||
|
||||
private static _byType = Validators._byTypeConstructor()
|
||||
|
|
|
@ -59,14 +59,14 @@ class SingleBackgroundHandler {
|
|||
return
|
||||
}
|
||||
|
||||
console.debug(
|
||||
"Removing raster layer",
|
||||
this._targetLayer.properties.id,
|
||||
"map moved and not been used for",
|
||||
SingleBackgroundHandler.DEACTIVATE_AFTER
|
||||
)
|
||||
try {
|
||||
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)
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
|
@ -7,7 +7,7 @@ export interface ShowDataLayerOptions {
|
|||
/**
|
||||
* 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.
|
||||
* When a feature is tapped, the feature will be put in there
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue