Client tokens in custom marker picture symbol not working
It appears that client tokens such as {RestVirtualDirectoryURL} do not work in the Style Section for a layer in essentails managment . "url":{RestVirtualDirectoryUrl}/black_star_32x32.png, throws the error
"Invalid ArcGIS JSON symbol definition. Invalid JavaScript property identifier character: }. Path 'uniqueValueInfos[0].symbol.url', line 12, position 54." but this same syntax works as the layer ico uri. so can someone test this syntax and suggest a better on. i want to build custom style symbols that i can put in style definitions for custom symbology on point maps. or are client tokens not possible in this json situation?
{
"type": "uniqueValue",
"field1": "REC_TYPE",
"field2": null,
"field3": null,
"fieldDelimiter": ", ",
"defaultSymbol": null,
"defaultLabel": null,
"uniqueValueInfos": [{
"symbol": {
"type": "esriPMS",
"url":{RestVirtualDirectoryUrl}/black_star_32x32.png,
"contentType": "image/png",
"width": 100,
"height": 100,
"angle": 0,
"xoffset": 0,
"yoffset": 0
},
"value": "Boat Launch",
"label": "Boat Launch Point",
"description": ""
}]
}
0
-
I encountered an issue earlier this month where manager did not recognize a path to a the sites' virtualdirectory but the images displayed in the viewer without trouble. Did you try making the desired changes outside of manager? 0 -
yes, i eventually ended up putting the images in my virtual directory an used the full http path as in this example. i never got a token to work, but i think with some documentation i could store named markersets in json format that could be cut and pasted into the style manager
{
"type": "uniqueValue",
"field1": "REC_TYPE",
"field2": null,
"field3": null,
"fieldDelimiter": ", ",
"defaultSymbol": null,
"defaultLabel": null,
"uniqueValueInfos": [{
"symbol": {
"type": "esriPMS", "url":"http://ilmorso3gi7vm.blm.doi.net/Geocortex/Essentials/REST/sites/Jeffs_PlayPen/VirtualDirectory/Icons/Layers/red_star_32x32.png",
"contentType": "image/png",
"width": 16,
"height": 16,
"angle": 0,
"xoffset": 0,
"yoffset": 0
},0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer