2

これが私が取り組んでいるマップのスクリーンショットです。

ここに画像の説明を入力

ここに私のKMLコードがあります:

<Style id="line1">
    <LineStyle>
        <color>ff8C0A23</color>
        <width>2</width>
    </LineStyle>
</Style>

<Placemark>
<styleUrl>#line1</styleUrl>
<LineString><coordinates> ...

ご覧のとおり、色の値はARGBff8C0A23ですよね?したがって、RGBカラーは次のようになります。8C0A23

ここに画像の説明を入力

しかし、ご覧のとおり、地図では境界線の色がまったく異なって表示されています。誰でもそれを修正する方法を知っていますか?

4

1 に答える 1

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.

このカラー チューザーを参照してください: http://www.zonums.com/gmaps/kml_color/

于 2012-10-10T06:49:48.417 に答える