This is an archive related to a previous version of Esri Maps for IBM Cognos. If you need the current version go to http://doc.arcgis.com/en/maps-for-cognos/.
Esri Maps for IBM Cognos provides a default set of symbols used to style point features on the map. In addition to modifying the default symbols, administrators can add their own custom symbol sets to the list of picture marker symbols report authors and consumers use to style their maps.
In Esri Maps for IBM Cognos, custom picture marker symbols are packaged in folders according to theme. These custom picture marker set folders are added to the esri-maps-em4c extension pack folder.
A custom picture marker symbol set folder contains the following:
Once you have created the custom picture marker symbol set and added it to the esri-maps-em4c extension pack folder, you must modify the extension pack manifest file to include your custom symbol set.
Create a folder inside the esri-maps-em4c extension pack folder to store your symbol set files.
To ensure that the symbols display properly in the Symbol drop-down menus and on the map, create custom picture marker symbols that measure 20x20 pixels and save them in PNG format to preserve transparency.
For best visibility on the map, keep the symbols simple. To ensure that the symbols display properly in the Symbol drop-down menus and on the map, create symbols that measure 20x20 pixels, and save them in PNG or JPG format. Use the PNG format to preserve transparency, as shown in the following images.
The Picture Marker Set definition is a JSON file that describes each of the picture marker symbols in your set.
In the following JSON example, each of the three custom symbol markers (*.png) is a separate object. Objects are enclosed in curly brackets ({ }) and separated by commas. Multiple objects are enclosed in square brackets ([ ]) to indicate an array. Each JSON object contains properties formatted as name-value pairs that represent data.
[
{
"type": "esriPMS",
"url": "esri-maps-em4c/CrimeSymbols/images/crimeSymbol1.png",
"width": "20",
"height": "20",
"xoffset": "0",
"yoffset": "10"
},
{
"type": "esriPMS",
"url": "esri-maps-em4c/CrimeSymbols/images/crimeSymbol2.png",
"width": "20",
"height": "20",
"xoffset": "0",
"yoffset": "10"
},
{
"type": "esriPMS",
"url": "esri-maps-em4c/CrimeSymbols/images/crimeSymbol3.png",
"width": "20",
"height": "20",
"xoffset": "0",
"yoffset": "10"
}
]
For each picture marker symbol in your set, you create a JSON object that includes the following properties. The type, url, width, and height properties are required; others are optional.
Optional properties include the following:
[
]
Inside the array brackets, type a set of curly brackets, and then type the required name-value pairs that describe the picture marker symbol. Be sure to separate each property with a comma, and enclose each name-value element within quotation marks. Indent your code appropriately to ensure readability. For example:
[
{
“type” : “esriPMS”,
“url” : “esri-maps-em4c/CrimeSymbols/images/symbol1.png”,
“width” : “20”,
“height” : “20”,
“xoffset” : “0”,
“yoffset” : “10”
}
]
[
{
“type” : “esriPMS”,
“url” : “esri-maps-em4c/CrimeSymbols/images/symbol1.png”,
“width” : “20”,
“height” : “20”,
“xoffset” : “0”,
“yoffset” : “10”
},
{
...
}
]
The esri-maps-em4c extension pack folder contains a manifest file named manifest.json.txt that defines any custom picture marker set you create for Esri Maps for IBM Cognos, in addition to other tools and behaviors. To add your custom picture marker set to this file, you specify a name and label for the set, as well as the location and name of the set's definition file.
,
"pictureMarkerSets": [{
"name": "crimesymbols",
"label": "Crime Symbols",
"location": "./CrimeSymbols/CrimeSymbols.json.txt"
}]
The name property refers to the name of the set.
The label property specifies the label that appears in the drop-down menu of available symbol sets.
The location property points to the location of the custom picture marker set's definition file (for example, crimeSymbols.json.txt).
Verify that your custom picture markers are available to Esri Maps for IBM Cognos report authors and consumers.
Your custom picture marker set is now ready to use.