【发布时间】:2019-08-21 10:24:26
【问题描述】:
我正在尝试修改在 KML 文档中作为图标导入的图像的不透明度。我如何实现这个目标? 请耐心等待我,我是编程初学者。
根据 Google 的文档,我尝试在 Icon 标签周围使用 Style 和 IconStyle 标签,并提到了 opacity0.4opacity 以及 color#64ffffffcolor 和 color#66ffffffcolor 但它不起作用。
我还尝试在没有 Style 和 IconStyle 标签的情况下仅在图标周围插入不透明度或颜色标签,它也不起作用。
测试环境:http://display-kml.appspot.com/ 谷歌参考文档:https://developers.google.com/kml/documentation/kmlreference
<Document>
<Name>World Atlas Artificial Night Sky Brightness</Name>
<GroundOverlay>
<name>ArtificialSkyBrightness537.JPG</name>
<drawOrder>15</drawOrder>
<color>64ffffff</color>
<Description></Description>
<Icon>
<href>https://nightskybrightness.s3.eu-west-3.amazonaws.com/ArtificialSkyBrightness537.JPG</href>
<color>#64ffffff</color>
</Icon>
<LatLonBox>
<north>50.9375138445</north>
<south>42.4041839245</south>
<east>4.2499263</east>
<west>-4.12507035</west>
<rotation>0</rotation>
</LatLonBox>
</GroundOverlay>
</Document>
预期结果:40% 不透明度 实际结果:不透明度没有变化
【问题讨论】:
标签: xml google-maps kml