HTML Symbol

736
1
03-03-2022 11:23 PM
Status: Open
Labels (3)
MichaelK1
New Contributor III

It would be nice if you can add html 'div' elements as symbol. Maybe it could be a separate layer (HTMLFeatureLayer) Or it should be possible for each layer type. 

Is it possible to write a custom feature layer / graphic layer with html element? I know this is possible for popups/infowindow content.. 

Thanks in advance!

 

1 Comment
KristianEkenes

Hi, can you provide more detail about the type of symbol you would like to apply to the FeatureLayer? There are a couple of options that you could use:

1. SimpleMarkerSymbol.path - This allows you to create a symbol using an SVG path. This sample demonstrates how you can use this to create a custom arrow symbol. You can alternatively use PictureMarkerSymbol.url to point to an SVG document.

2. CIMSymbol - This is a specification that allows you to define custom multi-layer symbols. It's a bit dense to learn at first, but the nice thing about CIM is you can save them to webmaps and they will render in other parts of ArcGIS, like ArcGIS Pro, or any web application. The CIMSymbol builder can help you get started with CIM.

Let me know what you're trying to do. Hopefully these options can help satisfy your use case.