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
Solved! Go to Solution.
Brandon,
This is a bug in 4.2. See this thread:
https://community.esri.com/thread/188542-the-size-attribute-on-simplemarkersymbol-is-not-working
Brandon,
This is a bug in 4.2. See this thread:
https://community.esri.com/thread/188542-the-size-attribute-on-simplemarkersymbol-is-not-working
Thanks Robert. Glad I wasn't missing something.