forked from MapComplete/MapComplete
UX: add fade-out animation to menus to show where they can be found again
This commit is contained in:
parent
733c2c7d14
commit
2bd3806f9a
9 changed files with 107 additions and 21 deletions
|
@ -16,6 +16,7 @@ export class LastClickFeatureSource {
|
|||
private i: number = 0
|
||||
private readonly hasPresets: boolean
|
||||
private readonly hasNoteLayer: boolean
|
||||
public static readonly newPointElementId= "new_point_dialog"
|
||||
|
||||
constructor(layout: LayoutConfig) {
|
||||
this.hasNoteLayer = layout.hasNoteLayer()
|
||||
|
@ -46,7 +47,7 @@ export class LastClickFeatureSource {
|
|||
|
||||
public createFeature(lon: number, lat: number): Feature<Point, OsmTags> {
|
||||
const properties: OsmTags = {
|
||||
id: "new_point_dialog",
|
||||
id: LastClickFeatureSource.newPointElementId,
|
||||
has_note_layer: this.hasNoteLayer ? "yes" : "no",
|
||||
has_presets: this.hasPresets ? "yes" : "no",
|
||||
renderings: this.renderings.join(""),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue