latest
⚙️ Administration
Konfiguration
Applikation
Karte

Kartenkonfiguration

Über die Datei mapConfig.json wird die Karte im 2D Modus konfiguriert.

          • mapConfig.json
  • Beispielkonfiguration

    {
    	"webMap": {
    		"portalItem": {
    			"id": "340b327f83514b668100b1cf67e72446",
    			"portal": {
    				"url": "https://arcgis.com/"
    			}
    		}
    	},
    	"mapView": {
    		"ui": {
    			"components": ["zoom"]
    		},
    		"constraints": {
    			"geometry": {
    				"type": "extent",
    				"spatialReference": {
    					"wkid": 4326
    				},
    				"xmin": 5.866,
    				"ymin": 47.27,
    				"xmax": 15.042,
    				"ymax": 55.058
    			},
    			"minScale": 3600000
    		},
    		"popup": {
    			"dockOptions": {
    				"position": "bottom-left",
    				"breakpoint": {
    					"width": 1200
    				}
    			}
    		}
    	},
    	"defaultBasemaps": {
    		"dark": {
    			"portalItem": {
    				"id": "9cad721b239e4d59b4bb9e670f3a8eea",
    				"portal": {
    					"url": "https://arcgis.com/"
    				}
    			}
    		},
    		"light": {
    			"portalItem": {
    				"id": "8c79139fe5c54d32aa928adaec4433be",
    				"portal": {
    					"url": "https://arcgis.com/"
    				}
    			}
    		}
    	},
    	"orgLayer": {
    		"portalUrl": "https://arcgis.com/",
    		"queryParams": {
    			"filter": "typekeywords:service AND group:f2918c40fb9841cfbfd3424bbfae2986
    "
    		}
    	},
    		"snappingLayer": {
    		"portalUrl": "https://arcgis.com/",
    		"queryParams": {
    			"filter": "typekeywords:service AND group:34fda702311a2308bb22a2d9ccb56b68"
    		}
    	}
    }

    Parameter

    EigenschaftTypBeschreibung
    webMapObjektKonfiguration für die Standard-Web-Map. Siehe API Reference für WebMap (opens in a new tab)
    mapViewObjektKonfiguration für Kartenansicht 2D. Siehe API Reference für MapView (opens in a new tab)
    defaultBasemapsObjektErlaubt die Definition von Standard-Basemaps für Light- und Darkmode.
    orgLayerObjektDefiniert die bei der Authentifizierung automatisch hinzugefügten Organisationslayer.
    snappingLayerObjektReferenz auf Portalelemente, die als Fanglayer zur Laufzeit hinzugefügt werden sollen