diff --git a/Customizations/AllKnownLayouts.ts b/Customizations/AllKnownLayouts.ts index 87c5121..77307bd 100644 --- a/Customizations/AllKnownLayouts.ts +++ b/Customizations/AllKnownLayouts.ts @@ -20,17 +20,17 @@ export class AllKnownLayouts { public static layoutsList: Layout[] = [ new CustomLayout(), - new Groen(), + new Natuurpunt(), new GRB(), new Cyclofix(), new GhostBikes(), new Bookcases(), new MetaMap(), new StreetWidth(), - new Natuurpunt(), new ClimbingTrees(), new Artworks(), new Smoothness(), + new Groen(), /* new Toilets(), */ diff --git a/Customizations/Layers/InformationBoard.ts b/Customizations/Layers/InformationBoard.ts index c0a9a16..0f2a4da 100644 --- a/Customizations/Layers/InformationBoard.ts +++ b/Customizations/Layers/InformationBoard.ts @@ -95,11 +95,11 @@ export class InformationBoard extends LayerDefinition { mappings: [ { k: new Tag("map_source:attribution", "yes"), - txt: "OpenStreetMap is clearly attribute, including the ODBL-license" + txt: "OpenStreetMap is clearly attributed, including the ODBL-license" }, { k: new Tag("map_source:attribution", "incomplete"), - txt: "OpenStreetMap is clearly attribute, but the license is not mentioned" + txt: "OpenStreetMap is clearly attributed, but the license is not mentioned" }, { k: new Tag("map_source:attribution", "sticker"), diff --git a/Customizations/Layers/Map.ts b/Customizations/Layers/Map.ts index 5786b64..75cb991 100644 --- a/Customizations/Layers/Map.ts +++ b/Customizations/Layers/Map.ts @@ -68,11 +68,11 @@ export class Map extends LayerDefinition { mappings: [ { k: new Tag("map_source:attribution", "yes"), - txt: "OpenStreetMap is clearly attribute, including the ODBL-license" + txt: "OpenStreetMap is clearly attributed, including the ODBL-license" }, { k: new Tag("map_source:attribution", "incomplete"), - txt: "OpenStreetMap is clearly attribute, but the license is not mentioned" + txt: "OpenStreetMap is clearly attributed, but the license is not mentioned" }, { k: new Tag("map_source:attribution", "sticker"), diff --git a/Customizations/Layouts/Natuurpunt.ts b/Customizations/Layouts/Natuurpunt.ts index 26566e4..89fa5fd 100644 --- a/Customizations/Layouts/Natuurpunt.ts +++ b/Customizations/Layouts/Natuurpunt.ts @@ -14,7 +14,7 @@ export class Natuurpunt extends Layout{ 12, 51.20875, 3.22435, - "

Natuurpuntstuff

", + "

Natuurstuff

Geef meer gegevens over natuurgebieden en hun infoborden", "", "" ); diff --git a/Logic/Leaflet/Basemap.ts b/Logic/Leaflet/Basemap.ts index b109da8..a4ce2bd 100644 --- a/Logic/Leaflet/Basemap.ts +++ b/Logic/Leaflet/Basemap.ts @@ -5,7 +5,8 @@ import {UIElement} from "../../UI/UIElement"; export class BaseLayers { - public static readonly defaultLayer: { name: string, layer: any } = { + public static readonly defaultLayer: { name: string, layer: any, id: string } = { + id: "osm", name: "Kaart van OpenStreetMap", layer: L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", { attribution: '', @@ -13,9 +14,10 @@ export class BaseLayers { minZoom: 1 }) }; - public static readonly baseLayers: { name: string, layer: any } [] = [ + public static readonly baseLayers: { name: string, layer: any, id: string } [] = [ { + id: "aiv-latest", name: "Luchtfoto Vlaanderen (recentste door AIV)", layer: L.tileLayer("https://tile.informatievlaanderen.be/ws/raadpleegdiensten/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&" + "LAYER=omwrgbmrvl&STYLE=&FORMAT=image/png&tileMatrixSet=GoogleMapsVL&tileMatrix={z}&tileRow={y}&tileCol={x}", @@ -29,6 +31,7 @@ export class BaseLayers { }, BaseLayers.defaultLayer, { + id: "aiv-13-15", name: "Luchtfoto Vlaanderen (2013-2015, door AIV)", layer: L.tileLayer.wms('https://geoservices.informatievlaanderen.be/raadpleegdiensten/OGW/wms?s', { @@ -37,6 +40,7 @@ export class BaseLayers { }) }, { + id:"grb", name: "Kaart Grootschalig ReferentieBestand Vlaanderen (GRB) door AIV", layer: L.tileLayer("https://tile.informatievlaanderen.be/ws/raadpleegdiensten/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=grb_bsk&STYLE=&FORMAT=image/png&tileMatrixSet=GoogleMapsVL&tileMatrix={z}&tileCol={x}&tileRow={y}", { @@ -62,6 +66,7 @@ export class Basemap { public LastClickLocation: UIEventSource<{ lat: number, lon: number }> = new UIEventSource<{ lat: number, lon: number }>(undefined) private _previousLayer: L.tileLayer = undefined; public CurrentLayer: UIEventSource<{ + id: string, name: string, layer: L.tileLayer }> = new UIEventSource(BaseLayers.defaultLayer); diff --git a/Logic/LocalStorageSource.ts b/Logic/LocalStorageSource.ts index 1b56698..f1b5896 100644 --- a/Logic/LocalStorageSource.ts +++ b/Logic/LocalStorageSource.ts @@ -12,7 +12,6 @@ export class LocalStorageSource { source.addCallback((data) => { localStorage.setItem(key, data); - console.log("Writing to local storage", key, data) }); return source; } catch (e) { diff --git a/State.ts b/State.ts index 539305c..b24fb8b 100644 --- a/State.ts +++ b/State.ts @@ -165,7 +165,7 @@ export class State { Locale.language.addCallback((currentLanguage) => { if (layoutToUse.supportedLanguages.indexOf(currentLanguage) < 0) { - console.log("Resetting languate to", layoutToUse.supportedLanguages[0], "as", currentLanguage, " is unsupported") + console.log("Resetting language to", layoutToUse.supportedLanguages[0], "as", currentLanguage, " is unsupported") // The current language is not supported -> switch to a supported one Locale.language.setData(layoutToUse.supportedLanguages[0]); } @@ -199,7 +199,6 @@ export class State { public GetFilteredLayerFor(id: string) : FilteredLayer{ for (const flayer of this.filteredLayers.data) { - console.log(flayer.layerDef.id, id) if(flayer.layerDef.id === id){ return flayer; } diff --git a/UI/SimpleAddUI.ts b/UI/SimpleAddUI.ts index 036f004..eb63c05 100644 --- a/UI/SimpleAddUI.ts +++ b/UI/SimpleAddUI.ts @@ -178,7 +178,7 @@ export class SimpleAddUI extends UIElement { } - return header.Render() + html; + return header.Render() + new Combine([html], "add-popup-all-buttons").Render(); } diff --git a/index.css b/index.css index d253668..43fbd89 100644 --- a/index.css +++ b/index.css @@ -1240,6 +1240,11 @@ form { font-size: large; } +.add-popup-all-buttons{ + max-height: 50vh; + display: inline-block; + overflow-y: auto; +} .custom-layer-panel { diff --git a/index.ts b/index.ts index 5952b02..3291072 100644 --- a/index.ts +++ b/index.ts @@ -173,7 +173,3 @@ if ((window != window.top && !State.state.featureSwitchWelcomeMessage) || State. new GeoLocationHandler().AttachTo("geolocate-button"); - - -// State.state.locationControl.ping() - diff --git a/package-lock.json b/package-lock.json index 0ae4f15..f303838 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2577,11 +2577,6 @@ "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "dev": true }, - "diff": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-1.4.0.tgz", - "integrity": "sha1-fyjS657nsVqX79ic5j3P2qPMur8=" - }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -4397,6 +4392,11 @@ "ms": "0.7.1" } }, + "diff": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-1.4.0.tgz", + "integrity": "sha1-fyjS657nsVqX79ic5j3P2qPMur8=" + }, "escape-string-regexp": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.2.tgz", diff --git a/preferences.html b/preferences.html deleted file mode 100644 index 42d9995..0000000 --- a/preferences.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - Preferences editor - - - - - - -

Preferences editor - developers only

-Only use if you know what you're doing. To prevent newbies to make mistakes here, editing a mapcomplete-preference is only available if over 500 changes
-Editing any preference -including non-mapcomplete ones- is available when you have more then 2500 changesets. Until that point, only editing mapcomplete-preferences is possible. -
'maindiv' not attached
- - -