2014-01-27 2 views
1

나는 이렇게와 마찬가지로 KML 사용자 정의 아이콘을 사용하고 있습니다 :KML 아이콘 크기 google maps API?

 <Style id='icon-1073'> 
     <IconStyle> 
      <scale>1.1</scale> 
      <Icon> 
       <href>http://www.gstatic.com/mapspro/images/stock/1073-biz-real-estate.png</href> 
      </Icon> 
     </IconStyle> 
    </Style> 

하지만 난 여전히 그것을 아래로 확장되는 100 픽셀 100 픽셀로 사용하는 경우 ... 을 큰 아이콘을 사용할 수없는 것 같다.

+1

를 [구글 맵]을 사용하고 (http://maps.google.com)? Google지도 자바 스크립트 API v3을 사용하고 있습니까? KML은 얼마나 복잡한가요? – geocodezip

답변

2

KML reference에 해당하는 크기 조정 태그는 Google지도 또는 Google지도 자바 스크립트 API에서 지원되지 않습니다.

<scale> no 

옵션 :

KML은 위의 링크에 의해로드 :

<?xml version="1.0" encoding="UTF-8" ?> 
<kml xmlns="http://www.opengis.net/kml/2.2"> 
<Document> 
<Style id='icon-1073'> 
    <IconStyle> 
    <scale>2.0</scale> 
    <Icon> 
     <href>http://www.gstatic.com/mapspro/images/stock/1073-biz-real-estate.png</href> 
    </Icon> 
    </IconStyle> 
</Style> 
<Placemark> 
    <name><![CDATA[]]></name> 
    <description><![CDATA[]]></description> 
    <styleUrl>#icon-1073</styleUrl> 
    <Point> 
    <extrude>1</extrude> 
    <altitudeMode>relativeToGround</altitudeMode> 
    <coordinates>71.3232421875,21.596150576461437,0</coordinates> 
    </Point> 
</Placemark> 
</Document> 
</kml>