{
  "version": 8,
  "metadata": {
    "carmaConf": {
      "layerInfo": {
        "title": "ALKIS Gebäude (schwarz)",
        "description": "Inhalt: Tagesaktuelle Vektordaten der Gebäude aus dem Amtlichen Liegenschaftskataster-Informationssystem ALKIS der Stadt Wuppertal; frei definierte schwarze Strichdarstellung ohne Bezug zum Signaturenkatalog NRW, geeignet als Überlagerung einer Luftbildkarte. Nutzung: Frei innerhalb der Grenzen des Urheberrechtsgesetzes; die zugrunde liegenden Datensätze sind mit Wochenaktualität unter einer Open-Data-Lizenz (dl-zero-de/2.0) verfügbar.",
        "tags": [
          "Basis",
          "Liegenschaftskataster",
          "Flurstück",
          "Flurstücksnummer",
          "Gebäude",
          "Bauwerk"
        ],
        "keywords": [
          "carmaconf://infoBoxMapping:function createInfoBoxInfo(p) { const gemarkungen = { 3001: 'Barmen', 3485: 'Beyenburg', 3279: 'Cronenberg', 3278: 'Dönberg', 3135: 'Elberfeld', 3486: 'Langerfeld', 3487: 'Nächstebreck', 3267: 'Ronsdorf', 3276: 'Schöller', 3277: 'Vohwinkel' }; const isFlurstueck = ( p.carmaInfo?.sourceLayer === 'landparcel' || p.carmaInfo?.selectionForwardingTo?.includes('landparcel') ); const isGebaeude = ( p.carmaInfo?.sourceLayer === 'building' || p.carmaInfo?.selectionForwardingTo?.includes('building') ); const isGebaeudestruktur = ( p.carmaInfo?.sourceLayer === 'buildingstructure' || p.carmaInfo?.selectionForwardingTo?.includes('buildingstructure') ); const isAdresse = ( p.carmaInfo?.sourceLayer === 'adresses' ); const isStrasse = ( p.carmaInfo?.sourceLayer === 'streets' || p.carmaInfo?.selectionForwardingTo?.includes('streets') ); if (isStrasse) { return { headerColor: '#000000', header: 'Straßenbezeichnung', title: p.bez, additionalInfo: `<html>Straßenschlüssel: ${p.strassenschluessel}</html>` }; } else if (isAdresse) { const adr = p.targetProperties || p; const adrKennz = adr.adr_kennz; const hausnr = adr.hausnr || ''; const adrZusatz = adr.adr_zusatz ? adr.adr_zusatz.trim() : ''; const fullHausnr = hausnr + (adrZusatz ? ' ' + adrZusatz : ''); const strasse = adr.name || ''; if (adrKennz === 4 && adr.drehwinkel != null) { const comment1 = 'Fall 2: Hausnummer, Gebäude noch nicht eingemessen'; return { headerColor: '#000000', header: 'Hausnummer - Gebäude noch nicht eingemessen', title: `${strasse} ${fullHausnr}`, additionalInfo: `<html>Die Einmessung des Gebäudes ist noch nicht erfolgt, sodass es in den ALKIS-Daten noch nicht enthalten ist. Real existiert das Gebäude bereits und ist mit der vergebenen Hausnummer gekennzeichnet.</html>` }; } else if (adrKennz === 4 && adr.drehwinkel == null) { const comment2 = '// Fall 3: Hausnummer ohne Gebäude'; return { headerColor: '#000000', header: 'Hausnummer ohne Gebäude', title: `${strasse} ${fullHausnr}`, additionalInfo: `<html>Hier liegt einer der seltenen Fälle vor, in denen für eine Fläche ohne Gebäude eine amtliche Hausnummer vergeben wurde, z. B. um für eine Gewerbeanmeldung eine vollständige Adresse angeben zu können.</html>` }; } else { const comment3 = '// Fall 1: Normale Hausnummer (adr_kennz=1) - zeige Gebäude-Info'; const geb = p.targetProperties; if (geb) { return { modal: 'alkisSIM', headerColor: '#000000', header: `${geb.geb_typ.trim() == 'Hauptgebäude' ? 'Hauptgebäude' : geb.geb_typ.replaceAll('_', ' ')}`, title: geb.main_address, additionalInfo: `<html>` + `Funktion: ${geb.geb_fkt}<br/>` + `Grundfläche: ${geb.flaeche} m²<br/>` + `</html>`, subtitle: `<html>` + `${geb.oeffentl == '1' ? 'Öffentliches Gebäude' : ''}` + `</html>` }; } return null; } } else if (isFlurstueck) { const landparcel = p.targetProperties || p; return { modal: 'alkisSIM', headerColor: '#000000', header: 'Flurstück', title: `${landparcel.gemarkungsnummer}-${landparcel.flurnummer}-${landparcel.zaehler}/${landparcel.nenner ? landparcel.nenner : '0'}`, additionalInfo: `<html>` + `Gemarkung: ${gemarkungen[landparcel.gemarkungsnummer]} (${landparcel.gemarkungsnummer})<br/>` + `Flur: ${landparcel.flurnummer}<br/>` + `Flurstück: ${landparcel.zaehler}${landparcel.nenner ? '/' + landparcel.nenner : ''}` + `</html>`, subtitle: `<html>` + `Lage: ${landparcel.adresse}<br/>` + `Fläche: ${(landparcel.flaeche_m2 >= 0.5 ? Math.round(landparcel.flaeche_m2) : landparcel.flaeche_m2).toLocaleString()} m²` + `</html>`, genericLinks: [{ tooltip: 'Bestellung von Liegenschaftskarten', url: `https://formulare.wuppertal.de/metaform/Form-Solutions/sid/assistant/5587cff10cf2ac88b8a11a72?Antragsteller.Daten.Auswahl%20%C3%BCber=Flurst%C3%BCck&Antragsteller.Daten.GeoLocation2.Gemarkung=${gemarkungen[landparcel.gemarkungsnummer]}%20(${landparcel.gemarkungsnummer})&Antragsteller.Daten.GeoLocation2.Flurnummer=${landparcel.flurnummer}&Antragsteller.Daten.GeoLocation2.Flurst%C3%BCck=${landparcel.zaehler}${landparcel.nenner ? '%2F' + landparcel.nenner : ''}`, iconname: 'shopping-cart' }] }; } else if (isGebaeude) { const geb = p.targetProperties || p; return { modal: 'alkisSIM', headerColor: '#000000', header: `${geb.geb_typ.trim() == 'Hauptgebäude' ? 'Hauptgebäude' : geb.geb_typ.replaceAll('_', ' ')}`, title: geb.main_address, additionalInfo: `<html>` + `Funktion: ${geb.geb_fkt}<br/>` + `Grundfläche: ${geb.flaeche} m²<br/>` + `</html>`, subtitle: `<html>` + `${geb.oeffentl == '1' ? 'Öffentliches Gebäude' : ''}` + `</html>` }; } else if (isGebaeudestruktur) { const gebs = p.targetProperties || p; return { headerColor: '#000000', header: 'Bauwerk', title: `${gebs.funktion_txt}`, }; } else { return null; } }",
          "carmaconf://blockLegacyGetFeatureInfo"
        ]
      }
    }
  },
  "sources": {
    "alkis_data": {
      "type": "vector",
      "tiles": ["https://tiles.cismet.de/alkis/{z}/{x}/{y}.pbf"],
      "minzoom": 9,
      "maxzoom": 17
    }
  },
  "glyphs": "https://tiles.cismet.de/fonts/{fontstack}/{range}.pbf",
  "sprite": "https://tiles.cismet.de/alkis/sprites",
  "layers": [
    {
      "id": "gebaeude_fill",
      "type": "fill",
      "source": "alkis_data",
      "source-layer": "building",
      "maxzoom": 14,
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "fill-color": [
          "case",
          ["==", ["get", "oeffentl"], "1"],
          "#dca894",
          "#888888"
        ],
        "fill-opacity": 0.65
      }
    },
    {
      "id": "gebaeudteil_fill",
      "type": "fill",
      "source": "alkis_data",
      "source-layer": "buildingpart",
      "maxzoom": 14,
      "layout": {
        "visibility": "none"
      },
      "paint": {
        "fill-color": "#888888",
        "fill-opacity": ["interpolate", ["linear"], ["zoom"], 15, 0.65, 16, 0]
      }
    },
    {
      "id": "gebaeudestruktur_fill",
      "type": "fill",
      "source": "alkis_data",
      "source-layer": "buildingstructure",
      "maxzoom": 14,
      "layout": {
        "visibility": "none"
      },
      "paint": {
        "fill-color": "#888888",
        "fill-opacity": ["interpolate", ["linear"], ["zoom"], 15, 0.65, 16, 0]
      }
    },
    {
      "id": "gebaeude_outlines",
      "type": "line",
      "source": "alkis_data",
      "source-layer": "building",
      "metadata": {
        "carmaConf": {
          "3d": {
            "skipIn2D": true,
            "renderMode": "extrusion",
            "fields": {
              "heightField": "building_height",
              "publicField": "oeffentl"
            }
          }
        }
      },
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "line-color": "#000000",
        "line-width": 0.5
      }
    },
    {
      "id": "gebaeudteil_outlines",
      "type": "line",
      "source": "alkis_data",
      "source-layer": "buildingpart",
      "layout": {
        "visibility": "none"
      },
      "paint": {
        "line-color": "#000000",
        "line-width": 0.5
      }
    },
    {
      "id": "gebaeudstruktur_outlines",
      "type": "line",
      "source": "alkis_data",
      "source-layer": "buildingstructure",
      "layout": {
        "visibility": "none"
      },
      "paint": {
        "line-color": "#000000",
        "line-width": 0.5
      }
    },
    {
      "id": "gebaeude_fill_selection",
      "type": "fill",
      "source": "alkis_data",
      "source-layer": "building",
      "maxzoom": 16,
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "fill-color": [
          "case",
          ["boolean", ["feature-state", "selected"], false],
          "rgba(58, 124, 235, 0.8)",
          "rgba(58, 124, 235, 0)"
        ]
      }
    },
    {
      "id": "gebaeudteil_fill_selection",
      "type": "fill",
      "source": "alkis_data",
      "source-layer": "buildingpart",
      "maxzoom": 16,
      "layout": {
        "visibility": "none"
      },
      "paint": {
        "fill-color": [
          "case",
          ["boolean", ["feature-state", "selected"], false],
          "rgba(58, 124, 235, 0.8)",
          "rgba(58, 124, 235, 0)"
        ]
      }
    },
    {
      "id": "gebaeudestruktur_fill_selection",
      "type": "fill",
      "source": "alkis_data",
      "source-layer": "buildingstructure",
      "maxzoom": 16,
      "layout": {
        "visibility": "none"
      },
      "paint": {
        "fill-color": [
          "case",
          ["boolean", ["feature-state", "selected"], false],
          "rgba(58, 124, 235, 0.8)",
          "rgba(58, 124, 235, 0)"
        ]
      }
    },
    {
      "id": "gebaeude_selection",
      "type": "line",
      "source": "alkis_data",
      "source-layer": "building",
      "maxzoom": 16,
      "layout": {
        "visibility": "visible",
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "#3A7CEB",
        "line-opacity": [
          "case",
          ["boolean", ["feature-state", "selected"], false],
          1,
          0
        ],
        "line-width": 3
      }
    },
    {
      "id": "gebaeudteil_selection",
      "type": "line",
      "source": "alkis_data",
      "source-layer": "buildingpart",
      "maxzoom": 16,
      "layout": {
        "visibility": "none",
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "#3A7CEB",
        "line-opacity": [
          "case",
          ["boolean", ["feature-state", "selected"], false],
          1,
          0
        ],
        "line-width": 3
      }
    },
    {
      "id": "gebaeudestruktur_selection",
      "type": "line",
      "source": "alkis_data",
      "source-layer": "buildingstructure",
      "maxzoom": 16,
      "layout": {
        "visibility": "none",
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "#3A7CEB",
        "line-opacity": [
          "case",
          ["boolean", ["feature-state", "selected"], false],
          1,
          0
        ],
        "line-width": 3
      }
    }
  ]
}
