如何使用Google Maps Api V3调整kml图层中的图标大小?

时间:2013-04-17 14:48:34

标签: google-maps google-maps-api-3 kml

我有疑问?有一点是使用谷歌地图Api V3 ??

调整kml图层中的图标大小

这是file.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>

感谢您的帮助......

1 个答案:

答案 0 :(得分:0)

Google Maps API v3 KmlLayer不支持scale标记(目前):

 <scale>    no

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

Example using the KML branch

Example using the KMZ branch