?? kmlreference.mht
字號(hào):
ence.html#gxtourcontrol">gx:TourControl</A>=20
<LI><A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#gxtourprimitive">gx:TourPrimitive</A>=20
<LI><A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#gxwait">gx:Wait</A>=20
</LI></UL>
<P>The complete XML schema for elements in this extension namespace is =
located=20
at <A=20
href=3D"http://code.google.com/apis/kml/schema/kml22gx.xsd">http://code.g=
oogle.com/apis/kml/schema/kml22gx.xsd</A>.</P>
<H2><A id=3Dkmlfields name=3Dkmlfields></A>KML fields</H2>
<P>KML uses common XML types such as <EM>boolean, string, double, =
float,</EM>=20
and <EM>int</EM>. In addition, it defines a number of field element =
types. The=20
following table lists some of the most commonly used types defined in =
KML and=20
links to sample elements that use them:</P>
<TABLE cellSpacing=3D0 cellPadding=3D0 summary=3D"">
<TBODY>
<TR>
<TH scope=3Dcol><EM><STRONG>Field Type</STRONG></EM></TH>
<TH scope=3Dcol><EM><STRONG>Value</STRONG></EM></TH>
<TH scope=3Dcol><EM><STRONG>Example Use</STRONG></EM></TH></TR>
<TR>
<TD><STRONG>altitudeModeEnum</STRONG></TD>
<TD>clampToGround, relativeToGround, absolute </TD>
<TD>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#lookat"><LookAt></A>=20
and <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#region"><Region></A>=20
</TD></TR>
<TR>
<TD><STRONG>angle90</STRONG></TD>
<TD>a value =E2=89=A5=E2=88=9290 and =E2=89=A490</TD>
<TD>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#latitude"><latitude></A>=20
in <Model> </TD></TR>
<TR>
<TD><STRONG>anglepos90</STRONG></TD>
<TD>a value =E2=89=A50 and =E2=89=A490 </TD>
<TD>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#tilt"><tilt></A>=20
in <LookAt> </TD></TR>
<TR>
<TD><STRONG>angle180</STRONG></TD>
<TD>a value =E2=89=A5=E2=88=92180 and =E2=89=A4180</TD>
<TD>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#longitude"><longitude></A>=20
in <Model> </TD></TR>
<TR>
<TD><STRONG>angle360</STRONG></TD>
<TD>a value =E2=89=A5=E2=88=92360 and =E2=89=A4360</TD>
<TD>See <heading>, <tilt>, and <roll> in<BR><A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#orientation"><Orientation></A>=20
</TD></TR>
<TR>
<TD><STRONG>color</STRONG></TD>
<TD>hexBinary value:<EM> aabbggrr</EM> </TD>
<TD>See any element that extends <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#colorstyle"><EM><ColorStyle></EM></A>=20
</TD></TR>
<TR>
<TD><STRONG>colorModeEnum</STRONG></TD>
<TD>normal, random </TD>
<TD>See any element that extends <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#colorstyle"><EM><ColorStyle></EM></A>=20
</TD></TR>
<TR>
<TD><STRONG>dateTime</STRONG></TD>
<TD><EM>dateTime, date, gYearMonth, gYear</EM></TD>
<TD>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#timespan"><TimeSpan></A>=20
and <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#timestamp"><TimeStamp>=20
</A></TD></TR>
<TR>
<TD><SPAN><STRONG>displayModeEnum</STRONG></SPAN></TD>
<TD><SPAN>default, hide </SPAN></TD>
<TD><SPAN>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#balloonstyle"><BalloonStyle></A>=20
</SPAN></TD></TR>
<TR>
<TD><SPAN><STRONG>gridOrigin</STRONG></SPAN></TD>
<TD><SPAN>lowerLeft, upperLeft</SPAN></TD>
<TD><SPAN>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#photooverlay"><PhotoOverlay></A></SPAN>=20
</TD></TR>
<TR>
<TD><STRONG>refreshModeEnum</STRONG></TD>
<TD>onChange, onInterval, onExpire </TD>
<TD>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#link"><Link></A>=20
</TD></TR>
<TR>
<TD><SPAN><STRONG>shapeEnum</STRONG></SPAN></TD>
<TD><SPAN>rectangle, cylinder, sphere</SPAN></TD>
<TD><SPAN>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#photooverlay"><PhotoOverlay></A></SPAN></TD></TR>
<TR>
<TD><STRONG>styleStateEnum</STRONG></TD>
<TD>normal, highlight</TD>
<TD>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#stylemap"><StyleMap></A></TD></TR>
<TR>
<TD><STRONG>unitsEnum</STRONG></TD>
<TD>fraction, pixels, insetPixels </TD>
<TD>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#hotspot"><hotSpot></A>=20
in <IconStyle>, <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#screenoverlay"><ScreenOverlay></A></TD></TR>
<TR>
<TD><STRONG>vec2</STRONG></TD>
<TD>x=3D<EM>double</EM> =
xunits=3D<EM>kml:unitsEnum</EM><BR>y=3D<EM>double</EM>=20
yunits=3D<EM>kml:unitsEnum</EM></TD>
<TD>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#hotspot"><hotSpot></A>=20
in <IconStyle>, <BR><A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#screenoverlay"><ScreenOverlay></A>=20
</TD></TR>
<TR>
<TD><STRONG>viewRefreshEnum</STRONG></TD>
<TD>never, onRequest, onStop, onRegion </TD>
<TD>See <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#link"><Link></A>=20
</TD></TR></TBODY></TABLE>
<H2> </H2>
<H2><A class=3Danchor id=3Dabstractview=20
name=3Dabstractview></A><AbstractView></H2>
<H3>Syntax </H3><PRE><!-- abstract element; do not create -->
<STRONG><!--<EM> AbstractView</EM> --></STRONG> =
<!-- Camera, LookAt --> =20
<!-- extends <SPAN class=3Dstyle1>Object</SPAN> -->
<EM><TimePrimitive>...</TimePrimitive></EM> =
<!-- gx:TimeSpan or gx:TimeStamp -->
<STRONG><-- /<EM>AbstractView</EM> --></STRONG></PRE>
<H3>Description </H3>
<P>This is an abstract element and cannot be used directly in a KML =
file. This=20
element is extended by the <A=20
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#camera"><Camera></A>=20
and <A=20
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#lookat"><LookAt></A>=20
elements. </P>
<H3>Extends</H3>
<UL>
<LI><A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#object"><Object></A>=20
</LI></UL>
<H3>Extended By</H3>
<UL>
<LI><A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#camera"><Camera></A>=20
<LI><A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#lookat"><LookAt></A>=20
</LI></UL>
<H2><A name=3Dgxaltitudemode></A><gx:altitudeMode></H2>
<TABLE class=3Dnote width=3D"60%">
<TBODY>
<TR>
<TD class=3Dnote>This element is an extension of the <A=20
href=3D"http://www.opengeospatial.org/standards/kml/">OGC KML 2.2=20
standard</A> and is supported in Google Earth 5.0. <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#kmlextensions">Learn=20
more</A></TD></TR></TBODY></TABLE>
<H3>Syntax</H3><PRE><gx:altitudeMode>clampToGround</gx:altitudeM=
ode> =20
<!-- gx:altitudeModeEnum: <EM>relativeToSeaFloor, =
clampToSeaFloor</EM>, <EM>relativeToGround</EM>, <EM>clampToGround</EM>, =
<EM>absolute</EM> --></PRE>
<H3>Description</H3>
<P>Can be used instead of the OGC KML standard =
<CODE><altitudeMode></CODE>=20
element, and accepts the following values in addition to the standard=20
altitudeMode values:</P>
<UL>
<LI><STRONG>relativeToSeaFloor</STRONG> - Interprets the altitude as a =
value=20
in meters above the sea floor. If the KML feature is above land rather =
than=20
sea, the altitude will be interpreted as being above the ground.=20
<LI><STRONG>clampToSeaFloor</STRONG> - The altitude specification is =
ignored,=20
and the KML feature will be positioned on the sea floor. If the KML =
feature is=20
on land rather than at sea, <STRONG>clampToSeaFloor</STRONG> will =
instead=20
clamp to ground. </LI></UL>
<P>As with <CODE><altitudeMode></CODE>,=20
<CODE><gx:altitudeMode></CODE> affects:</P>
<UL>
<LI>the altitude coordinate within the =
<CODE><coordinates></CODE>=20
element=20
<LI><CODE><minAltitude></CODE> and =
<CODE><maxAltitude></CODE>=20
within <CODE><LatLonAltBox></CODE>=20
<LI><CODE><altitude></CODE> within =
<CODE><Location></CODE>,=20
<CODE><GroundOverlay></CODE>, and <CODE>AbstractView</CODE>=20
(<CODE><LookAt></CODE> and <CODE><Camera></CODE>). =
</LI></UL>
<P>More information about altitude modes is available in the <A=20
href=3D"http://code.google.com/apis/kml/documentation/altitudemode.html">=
Altitude=20
Modes</A> chapter of the <STRONG>KML Developer's Guide</STRONG>.=20
<H3>Example</H3>
<P><IMG height=3D16 alt=3D""=20
src=3D"http://code.google.com/apis/kml/documentation/Images/kml_feed_smal=
l.png"=20
width=3D16> <A=20
href=3D"http://code.google.com/apis/kml/documentation/kmlfiles/altitudemo=
de_reference.kml">altitudemode_reference.kml</A></P><PRE><?xml =
version=3D"1.0" encoding=3D"UTF-8"?>
<kml xmlns=3D"http://www.opengis.net/kml/2.2"
xmlns:gx=3D"http://www.google.com/kml/ext/2.2"> <!-- required =
when using gx-prefixed elements -->
<Placemark>
<name>gx:altitudeMode Example</name>
<LookAt>
<longitude>146.806</longitude>
<latitude>12.219</latitude>
<heading>-60</heading>
<tilt>70</tilt>
<range>6300</range>
=
<STRONG><gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>=
</STRONG>
</LookAt>
<LineString>
<extrude>1</extrude>
<gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
<coordinates>
146.825,12.233,400
146.820,12.222,400
146.812,12.212,400
146.796,12.209,400
146.788,12.205,400
</coordinates>
</LineString>
</Placemark>
</kml>
</PRE>
<P> </P>
<H2><A name=3Dgxanimatedupdate></A><gx:AnimatedUpdate></H2>
<TABLE class=3Dnote width=3D"60%">
<TBODY>
<TR>
<TD class=3Dnote>This element is an extension of the <A=20
href=3D"http://www.opengeospatial.org/standards/kml/">OGC KML 2.2=20
standard</A> and is supported in Google Earth 5.0. <A=20
=
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#kmlextensions">Learn=20
more</A></TD></TR></TBODY></TABLE>
<H3>Syntax</H3><PRE><gx:AnimatedUpdate>
<gx:duration>0.0</gx:duration> <!-- double, =
specifies time in seconds -->
<Update>
<targetHref>...</targetHref> <!-- required; can =
contain a URL or be left blank -->
<!-- (to target =
elements within the same file -->
<Change>...</Change>
<Create>...</Create>
<Delete>...</Delete>
</Update>
</gx:AnimatedUpdate></PRE>
<H3>Description </H3>
<P><CODE><gx:AnimatedUpdate></CODE> controls changes during a tour =
to KML=20
features, using <CODE><A=20
href=3D"http://code.google.com/intl/zh-CN/apis/kml/documentation/kmlrefer=
ence.html#update"><Update></A></CODE>.=20
Changes to KML features will not modify the DOM - that is, any changes =
will be=20
reverted when the tour is over, and will not be saved in the KML at any=20
time.</P>
<P><CODE><gx:AnimatedUpdate></CODE> should also contain a=20
<CODE><gx:duration></CODE> value to specify the length of time in =
seconds=20
over which the update takes place. Integer, float, and color fields are =
smoothly=20
animated from original to new value across the duration; boolean, =
string, and=20
other values that don't lend to interpolation are updated at the end of =
the=20
duration.</P>
<P>Refer to <A=20
href=3D"http://code.google.com/apis/kml/documentation/touring.html#tourti=
melines">Tour=20
timelines</A> in the <STRONG>Touring</STRONG> chapter of the <STRONG>KML =
Developer's Guide</STRONG> for information about=20
<CODE><gx:AnimatedUpdate></CODE> and the tour timeline.</P>
<H3>Example</H3>
<P>The example below demonstrates a change in icon size. This change =
will be=20
animated over a 5 second duration.</P>
<P><IMG height=3D16 alt=3D""=20
src=3D"http://code.google.com/apis/kml/documentation/Images/kml_feed_smal=
l.png"=20
width=3D16> <A=20
href=3D"http://code.google.com/apis/kml/documentation/kmlfiles/animatedup=
date_example.kml">animatedupdate_example.kml</A></P><PRE><?xml =
version=3D"1.0" encoding=3D"UTF-8"?>
<kml xmlns=3D"http://www.opengis.net/kml/2.2"
xmlns:gx=3D"http://www.google.com/kml/ext/2.2">
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -