私はから私のKMLファイルを取得は - と言う - 私は、各アイコンのHREFで定義されたいくつかのスタイルを持っているKMLファイルでhttp://myaddress.com:8080KML HREFは常に絶対にする必要がありますか? Google Earthのから
に取り組みます。 このHREFにはアイコンの名前があり、別のアドレスが指定されていない限り、この例ではhttp://myaddress.com:8080/aircraft.pngという同じサーバーアドレスからGoogle Earthが暗黙的にこのファイルを取得することが期待されます。
これはうまくいきません。私はそれがローカルファイルとして解釈されると思います。
私は現在、自分が宣伝しているアドレスを自分のKMLサーバーに伝え、そのアドレスを使用して、生成する各KMLファイル内の各アイコンの絶対HREFを作成します。
HREF-edアイコン用のKMLでサーバーアドレスを使用しないようにするにはどうすればよいですか?
例KMLファイル:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
<Document>
<name>GE View</name>
<open>1</open>
<Style id="style8">
<IconStyle>
<scale>1.0</scale>
<heading>0.0</heading>
<Icon>
<href>aircraft.png</href>
<refreshInterval>0.0</refreshInterval>
<viewRefreshTime>0.0</viewRefreshTime>
<viewBoundScale>0.0</viewBoundScale>
</Icon>
</IconStyle>
</Style>
<Folder>
<name>Entities</name>
<open>1</open>
<Placemark>
<name>HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.Aircraft101</name>
<visibility>1</visibility>
<open>0</open>
<description>HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.Aircraft101: EntityType=1.2.0.-103.57.0.0</description>
<styleUrl>style8</styleUrl>
<Point>
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<coordinates>-18.00000000000001,53.999999999219824,1000.0000635553151</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>