Table of Contents
domain/queryParameters
QueryParameters
Enum which holds all valid query parameter keys for URL-based map configuration.
Query parameters allow users to share and embed customized map states through URLs.
Type: String
Examples
// Share a map view with specific layers and zoom level
https://atlas.bayern.de?z=8&c=677751,5422939&l=atkis,tk
ZOOM
Parameter Key: "z"
Type: number (0-20)
Sets the zoom level of the map.
Examples
https://atlas.bayern.de?z=8
CENTER
Parameter Key: "c"
Type: number,number (comma-separated pair)
Sets the center coordinate of the map in the format easting,northing (or longitude,latitude).
Supported SRIDs: 25832 (ETRS89 / UTM zone 32N) and 4326 (WGS84)
Examples
https://atlas.bayern.de?c=677751,5422939
ROTATION
Parameter Key: "r"
Type: number (radians)
Sets the rotation angle of the map.
Examples
https://atlas.bayern.de?r=0.42
LAYER
Parameter Key: "l"
Type: string,string,... (comma-separated list)
Specifies the layers to display. Each layer can be identified by:
- ID: An internal layer identifier (e.g.,
atkis,tk) - URL: An external GeoResource URL with optional format specifier
URL Patterns:
- KML, GPX, GEOJSON, EWKT:
url||[label] - WMS:
url||layer||[label]
Examples
// By layer IDs
https://atlas.bayern.de?l=atkis,tk
// By layer ID and KML URL with label
https://atlas.bayern.de?l=atkis,https%3A%2F%2Fgeodaten.bayern.de%2Fodd%2Fm%2F2%2Ffreizeitthemen%2Fkml%2Fzoo.kml||Zoos%20in%20Bayern
// By layer ID and WMS URL with layer and label
https://atlas.bayern.de?z=13&l=atkis,https%3A%2F%2Fgeoservices.bayern.de%2Fod%2Fwms%2Fatkis%2Fv1%2Ffreizeitwege||by_fzw_radwege||Radwege
LAYER_VISIBILITY
Parameter Key: "l_v"
Type: boolean,boolean,... (comma-separated, indexed by layer order)
Controls the visibility of each layer. Order must correspond to the LAYER parameter order.
Examples
https://atlas.bayern.de?l=atkis,tk&l_v=true,false
LAYER_OPACITY
Parameter Key: "l_o"
Type: number,number,... (0-1 range, comma-separated, indexed by layer order)
Controls the opacity/transparency of each layer. Order must correspond to the LAYER parameter order.
Examples
https://atlas.bayern.de?l=atkis,tk&l_o=1,0.5
LAYER_DISPLAY_FEATURE_LABELS
Parameter Key: "l_dfl"
Type: boolean,boolean,... (comma-separated, indexed by layer order)
Controls whether each layer should display its feature labels if available.
Order must correspond to the LAYER parameter order.
Examples
https://atlas.bayern.de?l=atkis,f_11d82da0-caef-11f0-a60a-dfceed522f95_ba878c95-c163-4f34-a0cd-350c10556e00&l_dfl=true,false
QUERY
Parameter Key: "q"
Type: string
Initializes a search request with the given query string.
Examples
https://atlas.bayern.de?q=München
FEATURE_INFO_REQUEST
Parameter Key: "fir"
Type: number,number (coordinate pair in EPSG:3857)
Triggers a FeatureInfo request at the specified coordinate. Coordinates must be in EPSG:3857 (Web Mercator) format.
Examples
https://atlas.bayern.de?l=atkis,6f5a389c-4ef3-4b5a-9916-475fd5c5962b&fir=1269930.753480,6092384.278496
ZOOM_TO_EXTENT
Parameter Key: "zte"
Type: number (layer index)
Fits the map view to the extent of the specified layer.
The index refers to the layer order in the LAYER parameter.
Examples
https://atlas.bayern.de/?l=atkis,f_b8feba10-f14e-11f0-bfca-572ff6603ccf_9dc40aa9-acfe-47a0-a2a5-2976d826bff9&zte=1
CROSSHAIR
Parameter Key: "crh"
Type: boolean or boolean,number,number (optional coordinate pair in EPSG:3857)
Displays a crosshair/center marker. If coordinates are provided, the marker appears at that location instead of the map center.
Examples
https://atlas.bayern.de?crh=true
https://atlas.bayern.de?crh=true,1319753.835587,6495702.843419
GEOLOCATION
Parameter Key: "gl"
Type: boolean
Activates geolocation, attempting to center the map on the user’s current location.
Examples
https://atlas.bayern.de?gl=true