forked from MapComplete/MapComplete
		
	More tweaks
This commit is contained in:
		
							parent
							
								
									739275f8a1
								
							
						
					
					
						commit
						de4e394088
					
				
					 5 changed files with 69 additions and 94 deletions
				
			
		|  | @ -71,6 +71,9 @@ export class PngMapCreator { | ||||||
|                 } else { |                 } else { | ||||||
|                     const bounds = BBox.fromLeafletBounds(leaflet.getBounds().pad(0.1).pad(-state.layoutToUse.widenFactor)) |                     const bounds = BBox.fromLeafletBounds(leaflet.getBounds().pad(0.1).pad(-state.layoutToUse.widenFactor)) | ||||||
|                     state.currentBounds.setData(bounds) |                     state.currentBounds.setData(bounds) | ||||||
|  |                     if(!state.featurePipeline.sufficientlyZoomed.data){ | ||||||
|  |                         console.warn("Not sufficiently zoomed!") | ||||||
|  |                     } | ||||||
| 
 | 
 | ||||||
|                     if (state.featurePipeline.runningQuery.data) { |                     if (state.featurePipeline.runningQuery.data) { | ||||||
|                         // A query is running!
 |                         // A query is running!
 | ||||||
|  | @ -81,10 +84,6 @@ export class PngMapCreator { | ||||||
|                     } |                     } | ||||||
| 
 | 
 | ||||||
|                     state.featurePipeline.GetTilesPerLayerWithin(bounds, (tile) => { |                     state.featurePipeline.GetTilesPerLayerWithin(bounds, (tile) => { | ||||||
| 
 |  | ||||||
|                         if (tile.layer.layerDef.minzoom > state.locationControl.data.zoom) { |  | ||||||
|                             return |  | ||||||
|                         } |  | ||||||
|                         if (tile.layer.layerDef.id.startsWith("note_import")) { |                         if (tile.layer.layerDef.id.startsWith("note_import")) { | ||||||
|                             // Don't export notes to import
 |                             // Don't export notes to import
 | ||||||
|                             return |                             return | ||||||
|  |  | ||||||
|  | @ -591,6 +591,7 @@ export class SvgToPdf { | ||||||
|                 if (key === "force") { |                 if (key === "force") { | ||||||
|                     console.log("Forcing minzoom of layer",layer.id) |                     console.log("Forcing minzoom of layer",layer.id) | ||||||
|                     layer.minzoom = 0 |                     layer.minzoom = 0 | ||||||
|  |                     layer.minzoomVisible = 0 | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  | @ -618,11 +619,13 @@ export class SvgToPdf { | ||||||
|                 const key = params[paramsKey].toLowerCase().trim() |                 const key = params[paramsKey].toLowerCase().trim() | ||||||
|                 const isDisplayed = key === "true" || key === "force"; |                 const isDisplayed = key === "true" || key === "force"; | ||||||
|                 const layer = state.filteredLayers.data.find(l => l.layerDef.id === layerName) |                 const layer = state.filteredLayers.data.find(l => l.layerDef.id === layerName) | ||||||
|  |                 console.log("Setting ", layer?.layerDef?.id," to visibility", isDisplayed, "(minzoom:", layer?.layerDef?.minzoomVisible, layer?.layerDef?.minzoom,")") | ||||||
|                 layer.isDisplayed.setData( |                 layer.isDisplayed.setData( | ||||||
|                     isDisplayed |                     isDisplayed | ||||||
|                 ) |                 ) | ||||||
|                 if (key === "force") { |                 if (key === "force") { | ||||||
|                     layer.layerDef.minzoom = 0 |                     layer.layerDef.minzoom = 0 | ||||||
|  |                     layer.layerDef.minzoomVisible = 0 | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  | @ -27,7 +27,7 @@ | ||||||
|      showguides="true" |      showguides="true" | ||||||
|      inkscape:guide-bbox="true" |      inkscape:guide-bbox="true" | ||||||
|      inkscape:zoom="1.0169528" |      inkscape:zoom="1.0169528" | ||||||
|      inkscape:cx="730.12238" |      inkscape:cx="389.89027" | ||||||
|      inkscape:cy="403.16522" |      inkscape:cy="403.16522" | ||||||
|      inkscape:window-width="1920" |      inkscape:window-width="1920" | ||||||
|      inkscape:window-height="1007" |      inkscape:window-height="1007" | ||||||
|  | @ -423,9 +423,9 @@ | ||||||
|        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect21432-8);display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.264848;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"><tspan |        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect21432-8);display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.264848;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="697.7954" |          y="697.7954" | ||||||
|          id="tspan16849"><tspan |          id="tspan1852"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16847">$map(theme:aed,z:14,lat:51.2098,lon:3.2284)</tspan></tspan></text> |            id="tspan1850">$map(theme:aed,z:14,lat:51.2098,lon:3.2284)</tspan></tspan></text> | ||||||
|     <text |     <text | ||||||
|        xml:space="preserve" |        xml:space="preserve" | ||||||
|        transform="matrix(0.26458333,0,0,0.26458333,1.3325782,-88.396258)" |        transform="matrix(0.26458333,0,0,0.26458333,1.3325782,-88.396258)" | ||||||
|  | @ -433,9 +433,9 @@ | ||||||
|        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect13433);fill:#000000;fill-opacity:1;stroke:none"><tspan |        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect13433);fill:#000000;fill-opacity:1;stroke:none"><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="697.7954" |          y="697.7954" | ||||||
|          id="tspan16853"><tspan |          id="tspan1856"><tspan | ||||||
|            style="font-size:16px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:16px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16851">$flyer.toerisme_vlaanderen</tspan></tspan></text> |            id="tspan1854">$flyer.toerisme_vlaanderen</tspan></tspan></text> | ||||||
|     <rect |     <rect | ||||||
|        style="fill:#deadff;fill-opacity:1;stroke:#000000;stroke-width:0.0270132;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" |        style="fill:#deadff;fill-opacity:1;stroke:#000000;stroke-width:0.0270132;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" | ||||||
|        id="rect11121" |        id="rect11121" | ||||||
|  | @ -450,26 +450,19 @@ | ||||||
|        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect17153);fill:#000000;fill-opacity:1;stroke:none"><tspan |        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect17153);fill:#000000;fill-opacity:1;stroke:none"><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="697.7954" |          y="697.7954" | ||||||
|          id="tspan16857"><tspan |          id="tspan1860"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16855">$map(theme:toerisme_vlaanderen,layer-</tspan></tspan><tspan |            id="tspan1858">$map(theme:toerisme_vlaanderen,layers:none</tspan></tspan><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="747.7954" |          y="747.7954" | ||||||
|          id="tspan16861"><tspan |          id="tspan1864"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16859">bench:false,layers:none, layer-</tspan></tspan><tspan |            id="tspan1862">,layer-charging_station_ebikes:force,lat:</tspan></tspan><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="797.7954" |          y="797.7954" | ||||||
|          id="tspan16865"><tspan |          id="tspan1868"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16863">charging_station_ebikes:force,lat:51.02403,lon:</tspan></tspan><tspan |            id="tspan1866">51.02403,lon:5.1, z:10)</tspan></tspan></text> | ||||||
|          x="28.759766" |  | ||||||
|          y="847.7954" |  | ||||||
|          id="tspan16871"><tspan |  | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |  | ||||||
|            id="tspan16867">5</tspan><tspan |  | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |  | ||||||
|            id="tspan16869">.1, z:10)</tspan></tspan></text> |  | ||||||
|     <rect |     <rect | ||||||
|        style="fill:#cccccc;fill-opacity:1;stroke:#000000;stroke-width:0.0178908;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" |        style="fill:#cccccc;fill-opacity:1;stroke:#000000;stroke-width:0.0178908;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" | ||||||
|        id="rect11459" |        id="rect11459" | ||||||
|  | @ -484,31 +477,31 @@ | ||||||
|        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect21432);fill:#000000;fill-opacity:1;stroke:none"><tspan |        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect21432);fill:#000000;fill-opacity:1;stroke:none"><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="697.7954" |          y="697.7954" | ||||||
|          id="tspan16877"><tspan |          id="tspan1874"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16873">$map(theme:cyclofix,z:14,lat:</tspan><tspan |            id="tspan1870">$map(theme:cyclofix,z:14,lat:</tspan><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16875">51.05016,lon:</tspan></tspan><tspan |            id="tspan1872">51.05016,lon:</tspan></tspan><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="747.7954" |          y="747.7954" | ||||||
|          id="tspan16881"><tspan |          id="tspan1878"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16879">3.717842,layers:none,layer-</tspan></tspan><tspan |            id="tspan1876">3.717842,layers:none,layer-</tspan></tspan><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="797.7954" |          y="797.7954" | ||||||
|          id="tspan16885"><tspan |          id="tspan1882"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16883">bike_repair_station:true,layer-</tspan></tspan><tspan |            id="tspan1880">bike_repair_station:true,layer-</tspan></tspan><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="847.7954" |          y="847.7954" | ||||||
|          id="tspan16889"><tspan |          id="tspan1886"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16887">drinking_water:true,layer-bike_cafe:true,layer-</tspan></tspan><tspan |            id="tspan1884">drinking_water:true,layer-bike_cafe:true,layer-</tspan></tspan><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="897.7954" |          y="897.7954" | ||||||
|          id="tspan16893"><tspan |          id="tspan1890"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16891">bicycle_tube_vending_machine: true)</tspan></tspan></text> |            id="tspan1888">bicycle_tube_vending_machine: true)</tspan></tspan></text> | ||||||
|     <rect |     <rect | ||||||
|        style="fill:#733034;fill-opacity:1;stroke:#000000;stroke-width:0.0661458;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" |        style="fill:#733034;fill-opacity:1;stroke:#000000;stroke-width:0.0661458;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" | ||||||
|        id="rect11543" |        id="rect11543" | ||||||
|  | @ -530,14 +523,14 @@ | ||||||
|        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;white-space:pre;shape-inside:url(#rect20457);display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.264848;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"><tspan |        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;white-space:pre;shape-inside:url(#rect20457);display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.264848;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="697.7954" |          y="697.7954" | ||||||
|          id="tspan16897"><tspan |          id="tspan1894"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16895">$map(theme:artwork,z:15,lat:51.2098,lon:</tspan></tspan><tspan |            id="tspan1892">$map(theme:artwork,z:15,lat:51.2098,lon:</tspan></tspan><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="747.7954" |          y="747.7954" | ||||||
|          id="tspan16901"><tspan |          id="tspan1898"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16899">3.2284,background:AGIV)</tspan></tspan></text> |            id="tspan1896">3.2284,background:AGIV)</tspan></tspan></text> | ||||||
|     <rect |     <rect | ||||||
|        style="fill:#cccccc;fill-opacity:1;stroke:#000000;stroke-width:0.0700743;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" |        style="fill:#cccccc;fill-opacity:1;stroke:#000000;stroke-width:0.0700743;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" | ||||||
|        id="rect11647" |        id="rect11647" | ||||||
|  | @ -552,14 +545,14 @@ | ||||||
|        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect3239);display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.264848;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"><tspan |        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect3239);display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.264848;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="697.7954" |          y="697.7954" | ||||||
|          id="tspan16905"><tspan |          id="tspan1902"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16903">$map(theme:cyclestreets,z:12,lat:51.2098,lon:</tspan></tspan><tspan |            id="tspan1900">$map(theme:cyclestreets,z:12,lat:51.2098,lon:</tspan></tspan><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="747.7954" |          y="747.7954" | ||||||
|          id="tspan16909"><tspan |          id="tspan1906"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16907">3.2284)</tspan></tspan></text> |            id="tspan1904">3.2284)</tspan></tspan></text> | ||||||
|     <g |     <g | ||||||
|        id="g1367" |        id="g1367" | ||||||
|        transform="matrix(1,0,0.20502864,-1,-20.554711,213.09746)"> |        transform="matrix(1,0,0.20502864,-1,-20.554711,213.09746)"> | ||||||
|  | @ -592,14 +585,14 @@ | ||||||
|        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect890);display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.264848;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"><tspan |        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect890);display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.264848;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="697.7954" |          y="697.7954" | ||||||
|          id="tspan16913"><tspan |          id="tspan1910"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16911">$map(theme:benches,z:14,lat:51.2098,lon:</tspan></tspan><tspan |            id="tspan1908">$map(theme:benches,z:14,lat:51.2098,lon:</tspan></tspan><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="747.7954" |          y="747.7954" | ||||||
|          id="tspan16917"><tspan |          id="tspan1914"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16915">3.2284, layers:none, layer-bench:force)</tspan></tspan></text> |            id="tspan1912">3.2284, layers:none, layer-bench:force)</tspan></tspan></text> | ||||||
|     <text |     <text | ||||||
|        xml:space="preserve" |        xml:space="preserve" | ||||||
|        transform="matrix(0.26458333,0,0,0.26458333,205.99418,0.58092297)" |        transform="matrix(0.26458333,0,0,0.26458333,205.99418,0.58092297)" | ||||||
|  | @ -607,9 +600,9 @@ | ||||||
|        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect6468);fill:#000000;fill-opacity:1;stroke:none"><tspan |        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect6468);fill:#000000;fill-opacity:1;stroke:none"><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="697.7954" |          y="697.7954" | ||||||
|          id="tspan16921"><tspan |          id="tspan1918"><tspan | ||||||
|            style="font-size:16px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:16px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16919">$flyer.aerial</tspan></tspan></text> |            id="tspan1916">$flyer.aerial</tspan></tspan></text> | ||||||
|     <text |     <text | ||||||
|        xml:space="preserve" |        xml:space="preserve" | ||||||
|        transform="matrix(0.26458333,0,0,0.26458333,-1.7998979,-153.42245)" |        transform="matrix(0.26458333,0,0,0.26458333,-1.7998979,-153.42245)" | ||||||
|  | @ -617,9 +610,9 @@ | ||||||
|        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect3512);fill:#000000;fill-opacity:1;stroke:none"><tspan |        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect3512);fill:#000000;fill-opacity:1;stroke:none"><tspan | ||||||
|          x="28.759766" |          x="28.759766" | ||||||
|          y="697.7954" |          y="697.7954" | ||||||
|          id="tspan16925"><tspan |          id="tspan1922"><tspan | ||||||
|            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" |            style="font-size:18.6667px;-inkscape-font-specification:'sans-serif, Normal'" | ||||||
|            id="tspan16923">$flyer.examples</tspan></tspan></text> |            id="tspan1920">$flyer.examples</tspan></tspan></text> | ||||||
|     <g |     <g | ||||||
|        id="path15616" |        id="path15616" | ||||||
|        transform="matrix(-1,0,0,1,497.66957,-0.86523396)"> |        transform="matrix(-1,0,0,1,497.66957,-0.86523396)"> | ||||||
|  | @ -686,9 +679,9 @@ | ||||||
|        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect135032);fill:#000000;fill-opacity:1;stroke:none"><tspan |        style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect135032);fill:#000000;fill-opacity:1;stroke:none"><tspan | ||||||
|          x="8.7285156" |          x="8.7285156" | ||||||
|          y="42.098132" |          y="42.098132" | ||||||
|          id="tspan16929"><tspan |          id="tspan1926"><tspan | ||||||
|            style="font-weight:bold;font-size:34.6667px;-inkscape-font-specification:'sans-serif, Bold'" |            style="font-weight:bold;font-size:34.6667px;-inkscape-font-specification:'sans-serif, Bold'" | ||||||
|            id="tspan16927">$flyer.title</tspan></tspan></text> |            id="tspan1924">$flyer.title</tspan></tspan></text> | ||||||
|     <text |     <text | ||||||
|        xml:space="preserve" |        xml:space="preserve" | ||||||
|        style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583" |        style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583" | ||||||
|  |  | ||||||
| Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB | 
|  | @ -1,16 +1,13 @@ | ||||||
| { | { | ||||||
|   "id": "mapcomplete-changes", |   "id": "mapcomplete-changes", | ||||||
|   "title": { |   "title": { | ||||||
|     "en": "Changes made with MapComplete", |     "en": "Changes made with MapComplete" | ||||||
|     "de": "Mit MapComplete vorgenommene Änderungen" |  | ||||||
|   }, |   }, | ||||||
|   "shortDescription": { |   "shortDescription": { | ||||||
|     "en": "Shows changes made by MapComplete", |     "en": "Shows changes made by MapComplete" | ||||||
|     "de": "Zeigt Änderungen an, die von MapComplete vorgenommen wurden" |  | ||||||
|   }, |   }, | ||||||
|   "description": { |   "description": { | ||||||
|     "en": "This map shows all the changes made with MapComplete", |     "en": "This maps shows all the changes made with MapComplete" | ||||||
|     "de": "Diese Karte zeigt alle mit MapComplete vorgenommenen Änderungen" |  | ||||||
|   }, |   }, | ||||||
|   "icon": "./assets/svg/logo.svg", |   "icon": "./assets/svg/logo.svg", | ||||||
|   "hideFromOverview": true, |   "hideFromOverview": true, | ||||||
|  | @ -23,9 +20,7 @@ | ||||||
|     { |     { | ||||||
|       "id": "mapcomplete-changes", |       "id": "mapcomplete-changes", | ||||||
|       "name": { |       "name": { | ||||||
|         "en": "Changeset centers", |         "en": "Changeset centers" | ||||||
|         "de": "Zentrum der Änderungssätze", |  | ||||||
|         "nl": "Zwaartepunten van wijzigingensets" |  | ||||||
|       }, |       }, | ||||||
|       "minzoom": 0, |       "minzoom": 0, | ||||||
|       "source": { |       "source": { | ||||||
|  | @ -36,48 +31,41 @@ | ||||||
|       }, |       }, | ||||||
|       "title": { |       "title": { | ||||||
|         "render": { |         "render": { | ||||||
|           "en": "Changeset for {theme}", |           "en": "Changeset for {theme}" | ||||||
|           "de": "Änderungssatz für {theme}" |  | ||||||
|         } |         } | ||||||
|       }, |       }, | ||||||
|       "description": { |       "description": { | ||||||
|         "en": "Shows all MapComplete changes", |         "en": "Shows all MapComplete changes" | ||||||
|         "de": "Zeigt alle MapComplete-Änderungen" |  | ||||||
|       }, |       }, | ||||||
|       "tagRenderings": [ |       "tagRenderings": [ | ||||||
|         { |         { | ||||||
|           "id": "show_changeset_id", |           "id": "show_changeset_id", | ||||||
|           "render": { |           "render": { | ||||||
|             "en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>", |             "en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>" | ||||||
|             "de": "Änderungssatz <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>" |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           "id": "contributor", |           "id": "contributor", | ||||||
|           "question": { |           "question": { | ||||||
|             "en": "What contributor did make this change?", |             "en": "What contributor did make this change?" | ||||||
|             "de": "Welcher Mitwirkende hat diese Änderung vorgenommen?" |  | ||||||
|           }, |           }, | ||||||
|           "freeform": { |           "freeform": { | ||||||
|             "key": "user" |             "key": "user" | ||||||
|           }, |           }, | ||||||
|           "render": { |           "render": { | ||||||
|             "en": "Change made by <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>", |             "en": "Change made by <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>" | ||||||
|             "de": "Änderung vorgenommen von <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>" |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           "id": "theme-id", |           "id": "theme-id", | ||||||
|           "question": { |           "question": { | ||||||
|             "en": "What theme was used to make this change?", |             "en": "What theme was used to make this change?" | ||||||
|             "de": "Welches Thema wurde für diese Änderung verwendet?" |  | ||||||
|           }, |           }, | ||||||
|           "freeform": { |           "freeform": { | ||||||
|             "key": "theme" |             "key": "theme" | ||||||
|           }, |           }, | ||||||
|           "render": { |           "render": { | ||||||
|             "en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>", |             "en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>" | ||||||
|             "de": "Geändert mit Thema <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>" |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|  | @ -86,23 +74,19 @@ | ||||||
|             "key": "locale" |             "key": "locale" | ||||||
|           }, |           }, | ||||||
|           "question": { |           "question": { | ||||||
|             "en": "What locale (language) was this change made in?", |             "en": "What locale (language) was this change made in?" | ||||||
|             "de": "In welchem Gebietsschema (Sprache) wurde diese Änderung vorgenommen?" |  | ||||||
|           }, |           }, | ||||||
|           "render": { |           "render": { | ||||||
|             "en": "User locale is {locale}", |             "en": "User locale is {locale}" | ||||||
|             "de": "Benutzergebietsschema ist {locale}" |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           "id": "host", |           "id": "host", | ||||||
|           "render": { |           "render": { | ||||||
|             "en": "Changed with <a href='{host}'>{host}</a>", |             "en": "Change with with <a href='{host}'>{host}</a>" | ||||||
|             "de": "Geändert über <a href='{host}'>{host}</a>" |  | ||||||
|           }, |           }, | ||||||
|           "question": { |           "question": { | ||||||
|             "en": "What host (website) was this change made with?", |             "en": "What host (website) was this change made with?" | ||||||
|             "de": "Über welchen Host (Webseite) wurde diese Änderung vorgenommen?" |  | ||||||
|           }, |           }, | ||||||
|           "freeform": { |           "freeform": { | ||||||
|             "key": "host" |             "key": "host" | ||||||
|  | @ -423,8 +407,7 @@ | ||||||
|                 } |                 } | ||||||
|               ], |               ], | ||||||
|               "question": { |               "question": { | ||||||
|                 "en": "Themename contains {search}", |                 "en": "Themename contains {search}" | ||||||
|                 "de": "Themename enthält {search}" |  | ||||||
|               } |               } | ||||||
|             } |             } | ||||||
|           ] |           ] | ||||||
|  | @ -440,8 +423,7 @@ | ||||||
|                 } |                 } | ||||||
|               ], |               ], | ||||||
|               "question": { |               "question": { | ||||||
|                 "en": "Made by contributor {search}", |                 "en": "Made by contributor {search}" | ||||||
|                 "de": "Erstellt vom Mitwirkenden {search}" |  | ||||||
|               } |               } | ||||||
|             } |             } | ||||||
|           ] |           ] | ||||||
|  | @ -457,8 +439,7 @@ | ||||||
|                 } |                 } | ||||||
|               ], |               ], | ||||||
|               "question": { |               "question": { | ||||||
|                 "en": "<b>Not</b> made by contributor {search}", |                 "en": "<b>Not</b> made by contributor {search}" | ||||||
|                 "de": "<b>Nicht</b> von Mitwirkendem {search}" |  | ||||||
|               } |               } | ||||||
|             } |             } | ||||||
|           ] |           ] | ||||||
|  | @ -475,8 +456,7 @@ | ||||||
|                 } |                 } | ||||||
|               ], |               ], | ||||||
|               "question": { |               "question": { | ||||||
|                 "en": "User language (iso-code) {search}", |                 "en": "Made before {search}" | ||||||
|                 "de": "Benutzersprache (ISO-Code) {search}" |  | ||||||
|               } |               } | ||||||
|             } |             } | ||||||
|           ] |           ] | ||||||
|  | @ -493,8 +473,7 @@ | ||||||
|                 } |                 } | ||||||
|               ], |               ], | ||||||
|               "question": { |               "question": { | ||||||
|                 "en": "Made with host {search}", |                 "en": "Made after {search}" | ||||||
|                 "de": "Erstellt mit host {search}" |  | ||||||
|               } |               } | ||||||
|             } |             } | ||||||
|           ] |           ] | ||||||
|  | @ -541,8 +520,7 @@ | ||||||
|           { |           { | ||||||
|             "id": "link_to_more", |             "id": "link_to_more", | ||||||
|             "render": { |             "render": { | ||||||
|               "en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>", |               "en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>" | ||||||
|               "de": "Weitere Statistiken finden Sie unter <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>hier</a>" |  | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								test.ts
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								test.ts
									
										
									
									
									
								
							|  | @ -26,6 +26,8 @@ async function main() { | ||||||
|         // Dirty hack!
 |         // Dirty hack!
 | ||||||
|         // Make the charging-station layer simpler to allow querying it by overpass
 |         // Make the charging-station layer simpler to allow querying it by overpass
 | ||||||
|         const chargingStationLayer: LayerConfig = AllKnownLayouts.allKnownLayouts.get("toerisme_vlaanderen").layers.find(l => l.id === "charging_station_ebikes") |         const chargingStationLayer: LayerConfig = AllKnownLayouts.allKnownLayouts.get("toerisme_vlaanderen").layers.find(l => l.id === "charging_station_ebikes") | ||||||
|  |         chargingStationLayer.minzoom = 0 | ||||||
|  |         chargingStationLayer.minzoomVisible = 0 | ||||||
|        // chargingStationLayer.source.osmTags = new And([new Tag("amenity","charging_station"), new Tag("bicycle","yes")])
 |        // chargingStationLayer.source.osmTags = new And([new Tag("amenity","charging_station"), new Tag("bicycle","yes")])
 | ||||||
|         Constants.defaultOverpassUrls.splice(0,1) // remove overpass-api.de for this run
 |         Constants.defaultOverpassUrls.splice(0,1) // remove overpass-api.de for this run
 | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue