You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first symbol will have it's stroke flag overwritten, so when the object refreshes (say on zoom), it will be created differently. This is due to the setOptions only doing a shallow copy.
To work around this I just change my call to:
symbol1 = L.Symbol.arrowHead({pixelSize:10, headAngle: 60, pathOptions: {...options}});
The text was updated successfully, but these errors were encountered:
If you create two Symbol instances like this:
options.stroke = true;
symbol1 = L.Symbol.arrowHead({pixelSize:10, headAngle: 60, pathOptions: options});
options.stroke = false
symbol2 = L.Symbol.arrowHead({pixelSize:10, headAngle: 60, pathOptions: options});
The first symbol will have it's stroke flag overwritten, so when the object refreshes (say on zoom), it will be created differently. This is due to the setOptions only doing a shallow copy.
To work around this I just change my call to:
symbol1 = L.Symbol.arrowHead({pixelSize:10, headAngle: 60, pathOptions: {...options}});
The text was updated successfully, but these errors were encountered: