Using Icons
Tuesday, February 28, 2017
Icons
Icons images are images which represent something in a list or on a map. These are not full Icons as the response from this request is a single image which can be embedded into a webpage or some other application.
The response contains the actual image file, the same as if you had requested an image file from a web-server directly. Semi-standard HTTP response status codes are used.
Breaking change as of May 23rd, 2018
Previously, the session identifier was being passed in the URL, but it is now passed in the query string as ghostId.
Previously, the session identifier was being passed in the URL, but it is now passed in the query string as ghostId.
Get the default icon image
The default image is the first glyph where there are no strings in the IconGlyph.tags array, or the array contains the string * to match all tags.
If the icon has no default image, then a HTTP status 404 is returned.
https://img.fleetfreedom.com/icon/iconId?ghostId=ghostId
Get a specific icon image
To get a specific image from the icon, you can add the "glyph" parameter in the request's query string to specify the index in the Icon.glyphs array.
https://img.fleetfreedom.com/icon/iconId?ghostId=ghostId&glyph=glyphIndex