MapDrawerDatasets configuration

The root CONFIG node in the MapDrawerDatasets configuration stores settings that are necessary for your map service to connect properly with your GIS application. Some of the attributes may be used for one provider, but may not be applicable for another provider.

Note: Your agency may be required to obtain an additional license or key when accessing map services from such public providers as Bing and ESRI.

The CONFIG node has these attributes:

Attribute Description
bingmapskey Bing Maps API key. A key is required for use of Bing Maps.
enginetype Map engine. Must be esri or openlayers. Refer to your ESRI licensing agreement if you want to use the ESRI map engine.

Required for both ESRI and OGC.

esriapi Location of the ESRI Javascript API. The ArcGIS API for JavaScript is a browser-based API for developing mapping applications. You can use the API to embed maps in your web pages.

You can use the online API from ESRI or you can set up your own local hosted copy.

See Setting up a hosted ArcGIS JavaScript API.

Required for ESRI. Not applicable to OGC.

geometryservice URL of the ESRI geometry services.

Required for ESRI. Not applicable to OGC.

jsload Script evaluated after executing the script specified by the jsmixin attribute, and before finalizing the map. Required for OGC.

For example, this script specifies a map layer for token security access:

esri.addProxyRule({ urlPrefix: "countysite.gov", proxyUrl: "http://countysite.gov/proxypage_net/proxy.ashx" });

Note: For agencies using Open Layers, we recommend that the spatial reference definition be provided here. The spatial reference definition is a list of values in a file format that the Open Layers application can use to accurately render the map. Not providing the definition here may result in a loss of performance and reliability. A list of spatial reference definitions is available at http://epsg.io/.

This example shows a declaration for projection EPSG:3421:

proj4.defs("EPSG:3421","+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=200000.00001016 +y_0=8000000.000010163 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs");

The link for this definition is http://epsg.io/3421. Click Proj4js under Export to see the definition.

An alternate solution is to create the definition as a file using the naming convention of EPSGxxx.js, where xxx is the projection number. Put the file in the \Client\Map\static\proj4js\lib\defs directory.

For this example the file name would be EPSG3421.js.

jsloaded Location of external JavaScript code to be executed after the map is loaded.
jsmixin Script used to extend existing namespaces or introduce additional namespaces before loading the map.
jsready Location of the JavaScript file Ready application. This is executed after the file is loaded.
olapi Location of the Open Layers API library. No value is required unless you want to override the default location.
Note: This application is part of the Infor Public Sector installation. The default location is the Client\Map directory.

Not applicable to ESRI. Optional for OGC.

oldojoapi Location of the Open Layers Dojo mapping component. The Dojo toolkit is an open-source modular JavaScript library designed to aid in the rapid development of cross-platform, JavaScript/Ajax-based applications and web sites. No value is required unless you want to override the default location.
Note: This application is part of the Infor Public Sector installation. The default location is the Client\Map directory.

Not applicable to ESRI. Optional for OGC.

olproj4js Location of the Open Layers Proj4js JavaScript library. Open Layers uses this library to perform spatial transformations. No value is required unless you want to override the default location.
Note: This application is part of the Infor Public Sector installation. The default location is the Client\Map directory.

Not applicable to ESRI. Optional for OGC.

The root CONFIG node can have up to five children: DATASETS, PREFERENCES, TOOLS, GROUPS, and LODS.