Cleanup of svg files, move matchpoint to explicit layer

This commit is contained in:
Pieter Vander Vennet 2021-12-22 01:08:11 +01:00
parent 95d6244008
commit 9e40e459e5
19 changed files with 27 additions and 1064 deletions

View file

@ -15,20 +15,10 @@ import {FixedUiElement} from "../Base/FixedUiElement";
import ShowDataLayer from "../ShowDataLayer/ShowDataLayer";
import BaseUIElement from "../BaseUIElement";
import Toggle from "./Toggle";
import * as matchpoint from "../../assets/layers/matchpoint/matchpoint.json"
export default class LocationInput extends InputElement<Loc> implements MinimapObj {
private static readonly matchLayer = new LayerConfig(
{
id: "matchpoint", source: {
osmTags: {and: []}
},
mapRendering: [{
location: ["point","centroid"],
icon: "./assets/svg/crosshair-empty.svg"
}]
}, "matchpoint icon", true
)
private static readonly matchLayer = new LayerConfig(matchpoint, "LocationInput.matchpoint", true)
IsSelected: UIEventSource<boolean> = new UIEventSource<boolean>(false);
public readonly snappedOnto: UIEventSource<any> = new UIEventSource<any>(undefined)