forked from MapComplete/MapComplete
Refactoring: add advanced buttons to open mapillary and to open other editors
This commit is contained in:
parent
1d543563d7
commit
12eb2a2d55
9 changed files with 152 additions and 143 deletions
|
@ -1,10 +1,10 @@
|
|||
import { GeoOperations } from "../../Logic/GeoOperations"
|
||||
import { MapillaryLink } from "../BigComponents/MapillaryLink"
|
||||
import { UIEventSource } from "../../Logic/UIEventSource"
|
||||
import Loc from "../../Models/Loc"
|
||||
import { SpecialVisualization, SpecialVisualizationState } from "../SpecialVisualization"
|
||||
import { Feature } from "geojson"
|
||||
import {GeoOperations} from "../../Logic/GeoOperations"
|
||||
import {ImmutableStore, UIEventSource} from "../../Logic/UIEventSource"
|
||||
import {SpecialVisualization, SpecialVisualizationState} from "../SpecialVisualization"
|
||||
import {Feature} from "geojson"
|
||||
import BaseUIElement from "../BaseUIElement"
|
||||
import SvelteUIElement from "../Base/SvelteUIElement";
|
||||
import MapillaryLink from "../BigComponents/MapillaryLink.svelte";
|
||||
|
||||
export class MapillaryLinkVis implements SpecialVisualization {
|
||||
funcName = "mapillary_link"
|
||||
|
@ -28,12 +28,12 @@ export class MapillaryLinkVis implements SpecialVisualization {
|
|||
if (isNaN(zoom)) {
|
||||
zoom = 18
|
||||
}
|
||||
return new MapillaryLink({
|
||||
locationControl: new UIEventSource<Loc>({
|
||||
return new SvelteUIElement(MapillaryLink, {
|
||||
mapProperties: {
|
||||
lat,
|
||||
lon,
|
||||
zoom,
|
||||
}),
|
||||
lon
|
||||
},
|
||||
zoom: new ImmutableStore(zoom)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue