forked from MapComplete/MapComplete
Add viewpoint for buurtnatuur, add translation of AddPointPoi
This commit is contained in:
parent
7bbc140f05
commit
c3d04c79b9
13 changed files with 271 additions and 71 deletions
|
|
@ -88,7 +88,8 @@ export class LayerDefinition {
|
|||
static WAYHANDLING_CENTER_AND_WAY = 2;
|
||||
|
||||
constructor(options: {
|
||||
name: string,
|
||||
name: string | UIElement,
|
||||
description: string | UIElement,
|
||||
newElementTags: Tag[],
|
||||
icon: string,
|
||||
minzoom: number,
|
||||
|
|
@ -106,6 +107,7 @@ export class LayerDefinition {
|
|||
return;
|
||||
}
|
||||
this.name = options.name;
|
||||
this.description = options.description;
|
||||
this.maxAllowedOverlapPercentage = options.maxAllowedOverlapPercentage ?? 0;
|
||||
this.newElementTags = options.newElementTags;
|
||||
this.icon = options.icon;
|
||||
|
|
@ -119,7 +121,7 @@ export class LayerDefinition {
|
|||
|
||||
asLayer(basemap: Basemap, allElements: ElementStorage, changes: Changes, userDetails: UIEventSource<UserDetails>,
|
||||
selectedElement: UIEventSource<{feature: any}>,
|
||||
showOnPopup: (tags: UIEventSource<(any)>, feature: any) => UIElement):
|
||||
showOnPopup: (tags: UIEventSource<any>, feature: any) => UIElement):
|
||||
FilteredLayer {
|
||||
return new FilteredLayer(
|
||||
this,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue