1.4.0
⚙️ Konfiguration
Karte

Kartenkonfiguration

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

    • mapConfig.json
  • Beispielkonfiguration

    {
    	"webMap": {
    		"portalItem": {
    			"id": "",
    			"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": "",
    				"portal": {
    					"url": "https://arcgis.com/"
    				}
    			}
    		},
    		"light": {
    			"portalItem": {
    				"id": "",
    				"portal": {
    					"url": "https://arcgis.com/"
    				}
    			}
    		}
    	},
    	"orgLayer": {
    		"portalUrl": "",
    		"queryParams": {
    			"filter": "typekeywords:service AND group:groupId"
    		}
    	}
    }

    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.