The path has a certain stroke
color which may change programatically. Can the marker's fill
also be the exact same as the path's stroke color? (I'll use javascript for this if I have to.)
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Markers are independent from the paths they are applied to and don't inherit colours. Nor is there a way to automatically have their colours match the path.
You will have to set their colour explicitly.
回答2:
IE and Firefox render markers color inherited from path, but Chrome does not.
I think it's a chrome bug.