Google지도를 사용하여 오레곤 주지도를 표시하는 프로젝트를 진행 중입니다. 현재 모든 카운티 및 빨간색 오버레이에 대한 선이있는 KML 레이어가 있습니다. 오버레이의 색상을 변경하려고하지만 kml 파일의 스타일 태그에 대한 변경 사항이 표시되지 않습니다. 당신은보다 구체적인 정보는 여기 오버레이 https://maps.google.com/?q=http://sixswords.net/oregon/kml/oregon_counties.kmlGoogle지도 KML 레이어 스타일 문제
편집과지도를 볼 수 있습니다 http://sixswords.net/oregon/kml/oregon_counties.kml
KML 파일은 여기
는 :
원래 KML 파일 스타일은 다음과 같습니다.
<Style id='Style0-polygon-3'>
<LabelStyle>
<scale>0.0</scale>
</LabelStyle>
<LineStyle>
<color>ff666666</color>
<width>1</width>
</LineStyle>
<PolyStyle>
<color>7f0000ff</color>
</PolyStyle>
<BalloonStyle>
<text>$[description]</text>
</BalloonStyle>
</Style>
<Style id='Style0-polygon-3-hover'>
<LineStyle>
<color>ff666666</color>
<width>1</width>
</LineStyle>
<PolyStyle>
<color>7f0000ff</color>
</PolyStyle>
<BalloonStyle>
<text>$[description]</text>
</BalloonStyle>
</Style>
<StyleMap id='Style0-polygon-3-map'>
<Pair>
<key>normal</key>
<styleUrl>#Style0-polygon-3</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#Style0-polygon-3-hover</styleUrl>
</Pair>
</StyleMap>
나는 Style0 폴리곤-3 스타일의 다각형 스타일 태그의 색상 값을 변경하려고했지만 실제로는 아무것도 변경되지 않습니다.
Google지도에서 스타일 맵이 작동하지 않습니다. 아마도 문제입니까? (Google 어스에서 KML 파일을 사용해보십시오. 제대로 작동하는 경우 올바르게 처리하고 있습니다.) – yoyo