Select to view content in your preferred language

Change width of SolidStrokeSymbolLayer while zooming in/out

436
1
08-10-2023 06:22 AM
padmalcom
Frequent Contributor

Hi, we draw (poly-)lines on a map using SolidStrokeSymbolLayer. When zooming out, the width of the line remains quite thick - which does not look very good.

We try to adapt the width of the stroke but if I understand correctly, the layer is defined once and it requires a recreation if we want to change its width. Is that correct? Is there another way to chance the stroke width when zooming?

0 Kudos
1 Reply
Nicholas-Furness
Esri Regular Contributor

Hi Jonas!

You can do this by setting the reference scale on the ArcGISMap, and then specifying that your feature layer should scale symbols.

You might need to do some experimenting to get the behavior you want. Let us know how this works for you.

0 Kudos