![](/img/trans.png)
[英]How can I set the zoom of the map so that my routes can be entirely seen? (here.com api)
[英]How can I change the color of a polyline in here.com javascript-api?
我在地图中绘制了多条折线,我希望它们根据某些事件更改颜色...一旦将折线对象添加到地图中,是否有更改strokecolor属性的函数?
使用setStyle
-method:
polyline.setStyle( polyline.getStyle().getCopy({strokeColor:'Red'}));
getCopy
-method返回给定SpatialStyle的副本,其中参数的属性( {strokeColor:'Red'}
)替换给定SpatialStyle的属性
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.