Select to view content in your preferred language

Create a graphic with an embedded shape inside and a custom color fill

83
1
Tuesday
JimBambrough
Emerging Contributor

I am trying to create a custom truck graphic with a "gear" inside to indicate a truck that is being serviced (see attached SVG). I need the ability to do the following 2 things:

  1. Render the outline of the truck with the solid black gear inside
  2. Custom fill the various instances of this graphic with different colors

Ideally, I would prefer to do this via SVG. But it seems this is likely not achievable given the solid "gear" inside the truck. I am open to any other solutions (.png, etc...) if I can achieve the previous 2 bullet points

Tags (2)
0 Kudos
1 Reply
ReneRubalcava
Esri Frequent Contributor

You should be able to accomplish this with CIMSymbol.

Here is an older blog post that walks through the process of converting SVG to CIM using the CIMSymbolBuilder.

https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/upload-symbols-from-svg-in-the-up...

0 Kudos