symbol size not working when using path 4.x

1040
2
Jump to solution
02-13-2017 08:54 AM
BrandonFlessner
Occasional Contributor

Setting a SimpleMarkerSymbol size does not work when using a path. To see this go to this sample: ArcGIS API for JavaScript Sandbox  and change the citiesRenderer to:

var citiesRenderer = new SimpleRenderer({
          symbol: new SimpleMarkerSymbol({
            size: "10pt",
            style: 'path',
            path: 'M2,32.578V91l29.719-29.774L61.437,91V32.578L31.719,3L2,32.578z',
            color: "#FF4000",
            outline: { // autocasts as new SimpleLineSymbol()
              color: [255, 64, 0, 0.4], // autocasts as new Color()
              width: 7
            }
          })
        });‍‍‍‍‍‍‍‍‍‍‍‍

The symbol stays the same size no matter if you put size: 10, size:"100px", size: "2pt" etc. So is there any way to change the size of the path symbol?

Thanks in advance

0 Kudos
1 Solution

Accepted Solutions
2 Replies
RobertScheitlin__GISP
MVP Emeritus
BrandonFlessner
Occasional Contributor

Thanks Robert. Glad I wasn't missing something.

0 Kudos