あなたは、一方が他方を参照する説明では、別の使用しての特別なリンクを1目印からリンクすることができます。このメカニズムは、KML標準の機能アンカーと呼ばれます。
パリの目印のURLは#marseille;balloonFlyto
です。ターゲット目印の「id」属性が「marseille」で、クリックされたときのターゲットアクションは「balloonFlyto」です。すなわち、KML識別子に続く#記号でURLである(ポップアップ説明バルーン内のターゲットHREFがフラグメントURLとすることができる
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>feature anchor</name>
<description>Feature anchor using ; to delimit action.</description>
<Placemark id="paris">
<name>Paris</name>
<description>
<![CDATA[
let's move to <a href="#marseille;balloonFlyto">Marseille</a>
]]>
</description>
<Point>
<coordinates>2.3508,48.8567</coordinates>
</Point>
</Placemark>
<Placemark id="marseille">
<name>Marseille</name>
<description>
<![CDATA[
Welcome to Marseille.
Return to <a href="#paris;balloonFlyto">Paris</a>
]]>
</description>
<Point>
<coordinates>5.37,43.2964</coordinates>
</Point>
</Placemark>
</Document>
</kml>
:ここ
を別にリンク1つの目印とKML完了します)。 (;)また、セミコロンでURLにアクションを追加することができ、これらの修飾子の1:
- flyto(デフォルト) - 機能へ
- 気球を飛ばす - 機能のバルーンを開けませんがフィーチャーへ
- balloonFlytoを飛ぶ - 機能のバルーンを開き、KML referenceから
抜粋上記の特徴に飛びます。
Googleマップでこれはですか?またはGoogle Earthでのみですか?または両方? – geocodezip
KMLは両方で使用できます。 –
はい、GoogleマップはKMLのサブセットのみをサポートしていますが、特定のターゲットがオプションを決定します。 – geocodezip