The geospatial-configuration.json file
The geospatial-configuration.json file contains definitions of the mapping tiles and coordinate reference systems to use in your deployment. You can use this reference and example information when you create your own mapping configuration file.
mapConfig- The
mapConfigobject defines the mapping tiles that are available.ThemapConfigobject can contain a single instance of each of the following objects that are used to define the mapping view and to provide defaults for all mapping layers that are defined in the file:
Examples:Option Description Type Default centerThe geographic center of the map when it is first opened. The
latandlngfields are used to specify the center point.Lat/Long Undefined zoomThe map zoom level when it is first opened. Number Undefined maxBoundsThe maximum area that can be mapped by defining the coordinates of two diagonally opposite corners of a rectangle. Lat/Long Bounds Undefined minZoomThe minimum amount the map can zoom (inclusive). If this option is not specified, the minimum zoom level is calculated as the lowest minimum zoom option available in any defined GridLayerorTileLayer.Number maxZoomThe maximum amount the map can zoom (inclusive). If this option is not specified, the maximum zoom level is calculated as the highest minimum zoom option available in any defined GridLayerorTileLayer.Number wrapWhether any specified layers are wrapped around the antimeridian. If this option is set to false, the layer is only displayed once at low zoom levels.Boolean True "mapConfig": { "center": { "lat": 52.202468, "lng": 0.142655 }, "zoom": 8, "maxBounds": { "north": 60.84, "south": 49.96, "east": 1.78, "west": -7.56 }, "minZoom": 2, "maxZoom": 10, "wrap": false, ... }In addition, depending on your mapping requirements, it must contain one or more base maps and can contain one or more overlays:baseMaps- A base map is an image that forms a background
over which other GIS items are overlaid. All base
maps must be hosted externally, and can be
referenced by using a URL. If you would like to
reference more than one base map, you can set a
default that is used when a map is
requested.
Example:Option Description Type Default idThe unique identifier used to distinguish the layer. (Mandatory) Text displayNameThe name to use to refer to this map when the map is displayed. (Mandatory) Text urlThe URL template for the tile server that hosts the mapping image. This URL can be a path to a standard image file format: png, or jpg, or a tile layer. (Mandatory) The URL template can contain the following variables:{x}and{y}- the tile coordinates{z}- the zoom level{s}- substituted with the list of subdomains, a separate request is made for each subdomain{r}- add "@2x" to load retina tiles
Note: i2 Maps use tiles that are based on the EPSG:3857 projected coordinate system (http://epsg.io/3857). Using an unsupported map type does not throw an error, but the map is not rendered correctly.String attributionInformation about the origin of the map that is displayed in the lower right of the map. Hyperlinks are supported alongside other text. You can identify hyperlinks by tagging them in the following format:
[hyperlink]url[/hyperlink]String tilesizeThe tile size in pixels. Number 256 minZoomThe minimum amount the map can zoom (inclusive). If this option is not specified, the minimum zoom level is calculated as the lowest minimum zoom option available in the layer.
Number maxZoomThe maximum amount the map can zoom (inclusive). If this option is not specified, the minimum zoom level is calculated as the lowest minimum zoom option available in the layer.
Number subdomainsSubdomains of the tile service. Can be passed in the form of a string array. String array crossOriginDefines how the tile server is configured to handle crossorigin requests. This can be one of the following values: anonymoususe-credentials""
String Anonymous tileBoundsThe WGS84 bounds for the tiles, allowing you to constrain the tile loading area to a specific location. For example: tileBounds: { west: 0.72235, east: 0.79101, south: 52.20424, north: 52.35211 }Lat/Long Bounds defaultBaseMapIf there are multiple base maps, this option identifies the map to load initially. Boolean False "baseMaps": [ { "id": "Esri.DeLorme", "displayName": "Esri Delorme", "url": "https://server.arcgisonline.com/ArcGIS/rest/services/Specialty/DeLorme_World_Base_Map/MapServer/tile/{z}/{y}/{x}", "attribution": "Tiles © Esri — Copyright: © 2012 DeLorme" } ] overlays- An overlay is a type of map layer that is
designed to provide additional information in
addition to the base map. As these images for a
secondary layer over the base map, you can set the
opacity of an overlay to allow information present
in the base map to be displayed.
Example:Option Description Type Default idThe unique identifier used to distinguish the layer. (Mandatory) Text displayNameThe name to use to refer to this map when the map is displayed. (Mandatory) Text urlThe URL template for the tile server that hosts the mapping image. This URL can be a path to a standard image file format: png, or jpg, or a tile layer. (Mandatory) The URL template can contain the following variables:{x}and{y}- the tile coordinates{z}- the zoom level{s}- substituted with the list of subdomains, a separate request is made for each subdomain{r}- add "@2x" to load retina tiles
Note: i2 Maps use tiles that are based on the EPSG:3857 projected coordinate system (http://epsg.io/3857). Using an unsupported map type does not throw an error, but the map is not rendered correctly.String attributionInformation about the origin of the map that is displayed in the lower right of the map. Hyperlinks are supported alongside other text. You can identify hyperlinks by tagging them in the following format:
[hyperlink]url[/hyperlink]String tilesizeThe tile size in pixels. Number 256 minZoomThe minimum amount the map can zoom (inclusive). If this option is not specified, the minimum zoom level is calculated as the lowest minimum zoom option available in the layer.
Number maxZoomThe maximum amount the map can zoom (inclusive). If this option is not specified, the minimum zoom level is calculated as the lowest minimum zoom option available in the layer.
Number subdomainsSubdomains of the tile service. Can be passed in the form of a string array. String array crossOriginDefines how the tile server is configured to handle crossorigin requests. This can be one of the following values: anonymoususe-credentials""
String Anonymous tileBoundsThe WGS84 bounds for the tiles, allowing you to constrain the tile loading area to a specific location. For example: tileBounds: { west: 0.72235, east: 0.79101, south: 52.20424, north: 52.35211 }Lat/Long Bounds opacityThe degree of visibility for objects on this layer. If set, the opacity must be a decimal between 0.0 (not visible) and 1.0 (fully visible). Number 1.0 "overlays": [ { "id": "OpenMapSurfer_AdminBounds", "displayName": "OpenMapSurfer Admin Bounds", "url": "https://maps.heigit.org/openmapsurfer/tiles/adminb/webmercator/{z}/{x}/{y}.png", "attribution": "Imagery from [hyperlink]http://giscience.uni-hd.de/ GIScience Research Group @ University of Heidelberg[/hyperlink] | Map data © [hyperlink]https://www.openstreetmap.org/copyright OpenStreetMap[/hyperlink] contributors" } ]
coordinateSystems- The
coordinateSystemsobject defines the coordinate reference systems that are available.
Example:Option Description Type idThe unique identifier used to distinguish the coordinate system. Text displayNameThe name to use to refer to this coordinate system when displayed in the UI. Text projStringThe projection string used to define the coordinate system. This string is a CRS definition. Text editorTypeThe controls to be used to label the x and y axis. This type can be: LATITUDE_LONGITUDE- Ellipsoidal 2D CSEASTING_NORTHING- Cartesian 2d CS E,NX_Y- Cartesian 2d CS X,Y
Text boundsThe area that can be mapped by defining the coordinates of two diagonally opposite corners of a rectangle. (Optional) Lat/Long Bounds "coordinateSystems": [ { "id": "EPSG:3081", "displayName": "NAD83 / Texas State Mapping System", "projString": "+proj=lcc +lat_1=27.41666666666667 +lat_2=34.91666666666666 +lat_0=31.16666666666667 +lon_0=-100 +x_0=1000000 +y_0=1000000 +ellps=GRS80 +datum=NAD83 +units=m +no_defs", "editorType": "X_Y" } ]
