我想更改计算路线的路线宽度。使用 Skobbblers SKMaps 框架。
我已成功使用此线程( How to change the color of the route in Skobbler )来更改路线颜色,但如果我更改 daystyle.json 中的宽度,似乎没有任何变化。我尝试了各种值(1.0、1.9、2.5、10.0、100.0),但宽度保持不变。无论 map 是否处于导航模式。
最佳答案
路线的 ID 为 0。您需要更改 0 属性的宽度值。在此示例中,宽度设置为 2.0,缩放级别为 4:
{
"id" : "0.4",
"isattribute" : true,
"line" :
{
"fill" :
{
"color" : "FF0000",
"width" : 2.0
},
"outline" :
{
"color" : "0080FF",
"width" : 1.0
},
}
},
关于ios - 更改 Skobblers SKMaps for iOS 中的路线宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34293986/