### Starting Development Server with npm Source: https://github.com/technologiestiftung/kiezcolors/blob/main/README.md This command starts the Svelte development server, allowing for local testing and development of the Kiezcolors application. The `--open` flag automatically opens the application in a new browser tab upon server startup. ```bash npm run dev # or start the server and open the app in a new browser tab npm run dev -- --open ``` -------------------------------- ### Initializing Matomo Analytics in JavaScript Source: https://github.com/technologiestiftung/kiezcolors/blob/main/src/app.html This JavaScript snippet initializes the Matomo analytics tracker. It configures the tracker URL and site ID, then enables page view and link tracking. It's typically placed in the head or body of an HTML document to ensure tracking starts on page load. ```JavaScript var _paq = (window._paq = window._paq || []); /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function () { var u = "https://piwik.technologiestiftung-berlin.de/"; _paq.push(["setTrackerUrl", u + "matomo.php"]); _paq.push(["setSiteId", "30"]); var d = document, g = d.createElement("script"), s = d.getElementsByTagName("script")[0]; g.async = true; g.src = u + "matomo.js"; s.parentNode.insertBefore(g, s); })(); ``` -------------------------------- ### Building Production Application with npm Source: https://github.com/technologiestiftung/kiezcolors/blob/main/README.md This command compiles the Svelte application into a production-ready build. The resulting output can then be deployed to a target environment, potentially requiring a SvelteKit adapter. ```bash npm run build ``` -------------------------------- ### Querying ALKIS Landuse Data via WFS GetCapabilities Source: https://github.com/technologiestiftung/kiezcolors/blob/main/README.md This URL provides the Web Feature Service (WFS) GetCapabilities request for Berlin's ALKIS (Amtliches Liegenschaftskatasterinformationssystem) actual land use data. It allows clients to discover the service's capabilities, supported operations, and feature types. ```WFS https://fbinter.stadt-berlin.de/fb/wfs/data/senstadt/s_wfs_alkis_tatsaechlichenutzungflaechen?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities ``` -------------------------------- ### Generating Map Tiles with Tippecanoe Source: https://github.com/technologiestiftung/kiezcolors/blob/main/README.md This command uses Tippecanoe to generate vector map tiles from a GeoJSON input file (`./alkis.geojson`). It specifies the output directory, uses an attribute for ID, disables compression, forces overwrite, sets zoom levels from 10 to 13, and requires the input data to be in EPSG:4326 projection. ```bash tippecanoe --output-to-directory ./tiles '--use-attribute-for-id=id' --no-tile-compression --force -B 13 '--minimum-zoom=10' '--maximum-zoom=13' ./alkis.geojson ``` -------------------------------- ### Downloading ALKIS Landuse Data as GeoJSON via WFS Source: https://github.com/technologiestiftung/kiezcolors/blob/main/README.md This URL performs a Web Feature Service (WFS) GetFeature request to download Berlin's ALKIS actual land use data directly in GeoJSON format. It specifies the output format and the feature type to retrieve. ```WFS https://fbinter.stadt-berlin.de/fb/wfs/data/senstadt/s_wfs_alkis_tatsaechlichenutzungflaechen?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&outputFormat=application/json&TYPENAMES=fis:s_wfs_alkis_tatsaechlichenutzungflaechen ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.