0

我有个问题?有某种方法可以使用 Google Maps Api V3 调整 kml 层中的图标大小?

这是文件.kml

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
   <Style id="icon05_E">
      <IconStyle>
         <Icon>
            <href>'http://190.143.101.58:3000/Images/AppIcons/Vehicles/Norte/icon051_N.png'</href>
         </Icon>
         <hotSpot x="50"  y="50" xunits="pixels" yunits="pixels"/>
      </IconStyle>
   </Style>
   <Placemark>
      <name>ESTE</name>
      <styleUrl>#icon05_E</styleUrl>
      <Point>
         <coordinates>-74.03973,4.7597</coordinates>
      </Point>
   </Placemark>
</Document>
</kml>

谢谢你的帮助 ...

4

1 回答 1

0

Google Maps API v3 KmlLayer不支持比例标签(目前):

 <scale>    no

如果您的 KML 不是很复杂,您可以使用geoxml3 。

使用 KML 分支的示例

使用 KMZ 分支的示例

于 2013-04-18T03:00:12.147 回答