Mah*_*hdi 2 colors kml google-maps-api-3
这是我正在处理的地图的屏幕截图:

这是我的KML代码:
<Style id="line1">
<LineStyle>
<color>ff8C0A23</color>
<width>2</width>
</LineStyle>
</Style>
<Placemark>
<styleUrl>#line1</styleUrl>
<LineString><coordinates> ...
Run Code Online (Sandbox Code Playgroud)
你可以看到颜色值是ff8C0A23,它是ARGB,对吗?所以RGB颜色8C0A23应该是这样的:

但正如您所看到的,边框的颜色在地图中显示完全不同.任何人都知道如何解决它?
geo*_*zip 12
https://developers.google.com/kml/documentation/kmlreference
根据:https: //developers.google.com/kml/documentation/kmlreference#color
表达的顺序是aabbggrr
<color>
Color and opacity (alpha) values are expressed in hexadecimal notation. The range of values for any one color
is 0 to 255 (00 to ff). For alpha, 00 is fully transparent and ff is fully opaque. The order of expression is
aabbggrr, where aa=alpha (00 to ff); bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to ff). For example,
if you want to apply a blue color with 50 percent opacity to an overlay, you would specify the following:
<color>7fff0000</color>, where alpha=0x7f, blue=0xff, green=0x00, and red=0x00.
Run Code Online (Sandbox Code Playgroud)
看到这个颜色选择器:http: //www.zonums.com/gmaps/kml_color/
| 归档时间: |
|
| 查看次数: |
4173 次 |
| 最近记录: |