使用HERE Map Image API中的“区域资源”时,我试图更改多边形填充的不透明度。
有人能做到这一点吗?
资源documentation在任何地方都没有提到不透明性。可以更改填充的唯一选项是{
"dog" : {
"boundingVertices" : {
"topLeft": {
"x": 0,
"y": 1331
},
"topRight": {
"x": 2560,
"y": 1331
},
"bottomRight": {
"x": 2560,
"y": 1371
},
"bottomLeft": {
"x": 0,
"y": 1371
},
"boundingVertices" : {
"topLeft": {
"x": 33,
"y": 31
},
"topRight": {
"x": 17,
"y": 98
},
"bottomRight": {
"x": 102,
"y": 56
},
"bottomLeft": {
"x": 10,
"y": 42
}
},
"cat" : {
"boundingVertices" : {
"topLeft": {
"x": 9,
"y": 23
},
"topRight": {
"x": 37,
"y": 53
},
"bottomRight": {
"x": 97,
"y": 32
},
"bottomLeft": {
"x": 85,
"y": 58
},
"boundingVertices" : {
"topLeft": {
"x": 32,
"y": 87
},
"topRight": {
"x": 23,
"y": 86
},
"bottomRight": {
"x": 38,
"y": 72
},
"bottomLeft": {
"x": 90,
"y": 45
}
}
}
,它指定填充颜色本身。
答案 0 :(得分:1)
fc颜色参数可以设置为透明。十六进制值的前2位数字表示透明度,其余6位数字为rgb颜色:
fc1=80FF0000
有关更多详细信息,请参阅本文: https://developer.here.com/documentation/map-image/topics/examples-region-usa.html