Google Maps KML: 8-Digit Hex Code

空扰寡人 提交于 2020-11-30 10:35:30

问题


I am new to Google Maps and KML. I have my KML file rendering polygons on my map, but I would like to change the color of the fill on the pollygon and the polygon's line color.

The problem is that I am having trouble creating colors in 8-digit hex. Every time I think I have the color right, it doesn't render like I think it would. I can't seem to find a color editor anywhere that would allow me to generate the 8-digit hex code that I need.

Do you guys know of such an editor (Paint.NET doesnt seem to support 8-digit) or some other way to easily generate an 8-digit code?

Thanks!


回答1:


This is what I use: http://www.zonums.com/gmaps/kml_color/

(this page lets you enter the code)

The hardest part is remembering the order of the pieces (from the spec):

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).

The first two digits ("aa"/alpha in aabbggrr) represent the opacity.




回答2:


You can use 6 digit hex code in reverse for the last six characters. The first two characters represent transparency which can be set from 00 which is invisible to ff which is opaque.



来源:https://stackoverflow.com/questions/13034702/google-maps-kml-8-digit-hex-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!