Whenever I have to create or update the mapping and schema for an object type, the icons for existing object types get reset back to the out-of-the-box 3D Printer and I have to change them manually.
How do I prevent this or reference a different out-of-the-box icon for an object type?
The Icons section in the schema and mapping documentation suggests I would just reference the icon key in the object type section but that did not work. I also tried to list the icon in the icons section first but that did not work either.
I tried listing the existing icon like so in the schema:
and then setting the key as the iconKey attribute when defining and object Type in the objectTypes array section:
Any help would be appreciated.
Hi Hof,
We identified what's happening is a bug with the icons being reset to the default one for your schema when you create/update the mapping.
We have logged it here and will hopefully be addressing it in the near future. https://jira.atlassian.com/browse/JSDCLOUD-11064
However with custom icons or referencing a different out-of-the-box icon, the "png48" field isn't used correctly currently.
"png48": "48x48 pixels base64 encoded PNG icon"
It's a base64 encoded PNG, there's heaps of third party sites that can change a icon into a string for you if you want to do that.
Feel free to report back with any other errors.
Cheers
Daniel
Thank you - will keep an eye on the issue and will figure out the base64 conversion for when this gets fixed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.