forked from MapComplete/MapComplete
		
	Chore: update packages, drop unused package
This commit is contained in:
		
							parent
							
								
									be8c9f081b
								
							
						
					
					
						commit
						9d6447a390
					
				
					 3 changed files with 258 additions and 4137 deletions
				
			
		
							
								
								
									
										4364
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										4364
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										20
									
								
								package.json
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								package.json
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -197,27 +197,27 @@
 | 
			
		|||
    "comunica": "^2.0.0",
 | 
			
		||||
    "coordinate-parser": "^1.0.7",
 | 
			
		||||
    "country-language": "^0.1.7",
 | 
			
		||||
    "country-to-currency": "^1.0.10",
 | 
			
		||||
    "country-to-currency": "^1.1.5",
 | 
			
		||||
    "crypto": "^1.0.1",
 | 
			
		||||
    "csv-parse": "^5.1.0",
 | 
			
		||||
    "csv-parse": "^5.6.0",
 | 
			
		||||
    "doctest-ts-improved": "^0.8.8",
 | 
			
		||||
    "dompurify": "^3.2.4",
 | 
			
		||||
    "email-validator": "^2.0.4",
 | 
			
		||||
    "escape-html": "^1.0.3",
 | 
			
		||||
    "exifreader": "^4.23.5",
 | 
			
		||||
    "exifreader": "^4.26.1",
 | 
			
		||||
    "fake-dom": "^1.0.4",
 | 
			
		||||
    "flowbite-svelte": "^0.46.2",
 | 
			
		||||
    "follow-redirects": "^1.15.6",
 | 
			
		||||
    "geojson2svg": "^1.3.3",
 | 
			
		||||
    "flowbite-svelte": "^0.47.4",
 | 
			
		||||
    "follow-redirects": "^1.15.9",
 | 
			
		||||
    "geojson2svg": "^2.0.2",
 | 
			
		||||
    "html-to-image": "^1.11.11",
 | 
			
		||||
    "i18next-client": "^1.11.4",
 | 
			
		||||
    "idb-keyval": "^6.0.3",
 | 
			
		||||
    "jest-mock": "^29.4.1",
 | 
			
		||||
    "jsonld": "^8.3.2",
 | 
			
		||||
    "jsonld-request": "^2.0.1",
 | 
			
		||||
    "jspdf": "^2.5.1",
 | 
			
		||||
    "latlon2country": "^1.2.6",
 | 
			
		||||
    "libphonenumber-js": "^1.10.8",
 | 
			
		||||
    "jspdf": "^2.5.2",
 | 
			
		||||
    "latlon2country": "^1.2.7",
 | 
			
		||||
    "libphonenumber-js": "^1.11.19",
 | 
			
		||||
    "mangrove-reviews-typescript": "^1.3.1",
 | 
			
		||||
    "maplibre": "^0.0.1-security",
 | 
			
		||||
    "maplibre-gl": "^5.1.0  ",
 | 
			
		||||
| 
						 | 
				
			
			@ -225,7 +225,6 @@
 | 
			
		|||
    "monaco-editor": "^0.46.0",
 | 
			
		||||
    "mvt-to-geojson": "^0.0.6",
 | 
			
		||||
    "name-suggestion-index": "^6.0.20250119",
 | 
			
		||||
    "npm": "^10.7.0",
 | 
			
		||||
    "opening_hours": "^3.6.0",
 | 
			
		||||
    "osm-auth": "^2.6.0",
 | 
			
		||||
    "osmtogeojson": "^3.0.0-beta.5",
 | 
			
		||||
| 
						 | 
				
			
			@ -288,7 +287,6 @@
 | 
			
		|||
    "svelte": "^3.55.1",
 | 
			
		||||
    "svelte-check": "^3.0.2",
 | 
			
		||||
    "svelte-preprocess": "^5.0.1",
 | 
			
		||||
    "ts-node": "^10.9.1",
 | 
			
		||||
    "ts2json-schema": "^1.4.0",
 | 
			
		||||
    "tslib": "^2.5.0",
 | 
			
		||||
    "typescript": "^4.7.4",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,8 +4,8 @@ import { BBox } from "../../Logic/BBox"
 | 
			
		|||
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
 | 
			
		||||
import { Utils } from "../../Utils"
 | 
			
		||||
import SimpleMetaTagger from "../../Logic/SimpleMetaTagger"
 | 
			
		||||
import geojson2svg from "geojson2svg"
 | 
			
		||||
import { GeoOperations } from "../../Logic/GeoOperations"
 | 
			
		||||
import { GeoJSON2SVG } from "geojson2svg"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Exposes the download-functionality
 | 
			
		||||
| 
						 | 
				
			
			@ -112,8 +112,7 @@ export default class DownloadHelper {
 | 
			
		|||
 | 
			
		||||
            const layerDef = options?.layers?.find((l) => l.id === layer)
 | 
			
		||||
            const rendering = layerDef?.lineRendering[0]
 | 
			
		||||
 | 
			
		||||
            const converter = geojson2svg({
 | 
			
		||||
            const converter = new GeoJSON2SVG({
 | 
			
		||||
                viewportSize: { width, height },
 | 
			
		||||
                mapExtent,
 | 
			
		||||
                output: "svg",
 | 
			
		||||
| 
						 | 
				
			
			@ -155,14 +154,14 @@ export default class DownloadHelper {
 | 
			
		|||
 | 
			
		||||
    private getCleanGeoJsonPerLayer(includeMetaData: boolean): Map<string, Feature[]> {
 | 
			
		||||
        const state = this._state
 | 
			
		||||
        const featuresPerLayer = new Map<string, any[]>()
 | 
			
		||||
        const featuresPerLayer = new Map<string, Feature[]>()
 | 
			
		||||
        const neededLayers = state.theme.layers.filter((l) => l.source !== null).map((l) => l.id)
 | 
			
		||||
        const bbox = state.mapProperties.bounds.data
 | 
			
		||||
 | 
			
		||||
        for (const neededLayer of neededLayers) {
 | 
			
		||||
            const indexedFeatureSource = state.perLayer.get(neededLayer)
 | 
			
		||||
 | 
			
		||||
            let features = indexedFeatureSource.GetFeaturesWithin(bbox)
 | 
			
		||||
            let features: Feature[] = indexedFeatureSource.GetFeaturesWithin(bbox)
 | 
			
		||||
            // The 'indexedFeatureSources' contains _all_ features, they are not filtered yet
 | 
			
		||||
            const filter = state.layerState.filteredLayers.get(neededLayer)
 | 
			
		||||
            features = features.filter((f) =>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue