המדריך למפתחים
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הקטע הזה כולל דפים עם מידע נוסף על רכיבי מפתח של KML ואיך להשתמש בהם.
- קובצי KMZעודכן
למד כיצד לארוז (ולדחוס) את קובץ ה-KML שלך ואת כל התמונות, שכבות העל, הסמלים וקובצי הצליל הקשורים אליו, ביחידה מסודרת אחת שניתן לפרסם או לשלוח כיישות אחת.
- סיורים
- Google Earth 5.0 מציג את הסיור: תנועה בשליטת KML במרחב ובזמן. אלמנטים הקשורים לסיור נמצאים במרחב השמות של תוסף Google.
- מצבי גובה
- עם השקת רכיבים במרחב השמות של תוסף Google, Google Earth 5.0 יכול להביא את הצופים אל מתחת למים עם מצבי גובה חדשים של clampToSeaFloor ו-יחסיים ל-ToToeeFloor. בפרק זה מתוארים גם המצבים המסורתיים מעל פני הקרקע.
- זמן ואנימציה
- לכל תכונה ב-KML אפשר לשייך נתוני זמן. כאשר קובץ KML מכיל תכונה עם רכיבי TimeSpan או TimeStamp, Google Earth מציג מחוון זמן. באמצעות פס ההזזה ולחצן ההפעלה, המשתמש יכול "להפעיל" את כל הרצף או לבחור תקופות זמן מסוימות לתצוגה.
- מצלמות
- מרכיב המצלמה מספק דרך נוספת לציין את נקודת המבט של תכונה. מצלמות נמצאות בשימוש עם שכבות-על, תכונה נוספת שנוספה ב-KML 2.2. <מצלמה> מספקת שליטה מלאה בשש מעלות של חופש על התצוגה, כך שניתן למקם את המצלמה בחלל ולאחר מכן לסובב אותה סביב הצירים x, y ו-z.
- שכבות-על של תמונות
- רכיב השכבת-על מאפשר לך לאתר גיאוגרפית תמונה של כדור הארץ ולציין את המיקום והכיוון של המצלמה שצופה בשכבת-העל הזו. שכבת-העל של התמונה יכולה להיות מלבן דו-ממדי פשוט, גליל חלקי או מלא, או כדור (פנוריות כדוריות). רכיב צאצא של ImagePyramid ב-PhotoLayer מאפשר טיפול יעיל בתמונות שרירותיות ב-Google Earth.
- נתוני שמיים ב-KML
- מעכשיו אפשר להציג נתוני שמיים ב-Google Earth. בדף הזה מוסבר איך מגדירים קובץ KML לתצוגה של שמיים, כולל טיפים להמרת קואורדינטות שמימיות רגילות שיוצגו ב-Google Earth ובמצב סקיי.
- הוספת נתונים מותאמים אישית
- ניתן להוסיף נתונים מותאמים אישית לתכונות KML בשלוש דרכים שונות, בהתאם לסוג של הנתונים המותאמים אישית. הרכיב החדש ExtendedData מאפשר לכם להוסיף ל-KML נתונים משלכם שאינם מקלידים, נתונים שהוקלדו או נתוני XML שרירותיים. Google Earth שומר מידע זה יחד עם הקובץ. נתונים לא מוזנים ונתונים שהוקלדו מכילים רכיבים ברשת המדיה שאפשר להשתמש בהם בתבניות סגנון ובהחלפת ישויות בבלון.
- מודלים
- ניתן ליצור מודל טבעי של אובייקטים תלת-ממדיים באופן טבעי במרחב הקואורדינטות שלהם, ולאחר מכן לייצא אותם כקובצי COLLADATM ולאחר מכן לייבא אותם אל Google Earth ולהציב אותם על פני כדור הארץ.
- אזורים
- האזורים מספקים התנהגות טובה ומפורטת, שמאפשרת לך לשפר את אופן הצגת הנתונים ב-Google Earth. בשימוש עם ה-NetworkLinks, אזורים מאפשרים הזרמה של מערכי נתונים גדולים מאוד, עם טעינה "חכמה" של נתונים ברמות שונות של רזולוציה (ראו את הקטע על שכבות-על עליונות). אפשר גם לדמות את השכבות של Google Earth באמצעות אזורים.
- עדכונים
- ניתן לעדכן בהדרגה נתונים שנטענו על ידי NetworkLinks – לשנות, להוסיף ולמחוק נתוני KML שנטענות בעבר אל Google Earth.
- תוקף הרישיון
- בדף הזה אנחנו מסבירים איך למנוע מצב לא פעיל של נתוני KML באמצעות כותרות HTTP וזמני תפוגה של KML.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2022-12-20 (שעון UTC).
[null,null,["עדכון אחרון: 2022-12-20 (שעון UTC)."],[[["\u003cp\u003eThis section provides further detail on key KML elements and their usage.\u003c/p\u003e\n"],["\u003cp\u003eKML files can incorporate touring, altitude modes, time, animation, and camera viewpoints for features.\u003c/p\u003e\n"],["\u003cp\u003eFeatures can include photo overlays, sky data, custom data, 3D models, and regions for enhanced visualization.\u003c/p\u003e\n"],["\u003cp\u003eNetworkLinks support data updates and can leverage regions for efficient streaming and level-of-detail management.\u003c/p\u003e\n"],["\u003cp\u003eKML data freshness can be controlled using HTTP headers and expiration times to prevent staleness.\u003c/p\u003e\n"]]],[],null,["# Developer's Guide\n\nThis section includes pages with additional information on key KML elements and how to use them.\n\n[KMZ Files](/kml/documentation/kmzarchives)^Updated^\n: Learn how to package up (and compress) your KML file and all its related images, overlays, icons, and sound files into one tidy unit that can be posted or emailed as a single entity.\n\n[Touring](/kml/documentation/touring)\n: Google Earth 5.0 introduces touring: KML-controlled movement through space and time. Touring-related elements are contained in the Google extension namespace.\n\n[Altitude Modes](/kml/documentation/altitudemode)\n: With the introduction of elements in the Google extension namespace, Google Earth 5.0 can take viewers underwater with new clampToSeaFloor and relativeToSeaFloor altitude modes. This chapter also discusses the traditional, above-ground modes.\n\n[Time and Animation](/kml/documentation/time)\n: Any Feature in KML can have time data associated with it. When a KML file contains a Feature with TimeSpan or TimeStamp elements, Google Earth displays a time slider. Using the slider and play button, the user can \"play\" the entire sequence or can select individual time periods for display.\n\n[Cameras](/kml/documentation/cameras)\n: The Camera element provides an additional way to specify the viewpoint for a Feature. Cameras are used with PhotoOverlays, another feature added in KML 2.2. \\\u003cCamera\\\u003e provides full six-degrees-of-freedom control over the view, so you can position the Camera in space and then rotate it around the *x* , *y* , and *z* axes.\n\n[PhotoOverlays](/kml/documentation/photos)\n: The PhotoOverlay element allows you to geographically locate a photograph on the Earth and to specify the placement and orientation of the Camera that views this PhotoOverlay. The PhotoOverlay can be a simple 2D rectangle, a partial or full cylinder, or a sphere (for spherical panoramas). The ImagePyramid child element of PhotoOverlay provides for efficient handling of arbitrarily large photographs in Google Earth.\n\n[Sky Data in KML](/kml/documentation/kmlsky)\n: Now you can display celestial data in Google Earth. This page describes how to set up your KML file to view the sky, with tips on converting standard celestial coordinates to display in Google Earth, Sky mode.\n\n[Adding Custom Data](/kml/documentation/extendeddata)\n: You can add custom data to KML Features in three different ways, depending on the kind of custom data. The new ExtendedData element allows you to add your own untyped data, typed data, or arbitrary XML data to a KML Feature. Google Earth preserves this information along with the file. Untyped data and typed data contain display elements that can be used for style templates and entity replacement in the balloon.\n\n[Models](/kml/documentation/models)\n: Three-dimensional objects can be modeled naturally in their own coordinate space and exported as COLLADA™ files, then imported into Google Earth and placed on the Earth's surface.\n\n[Regions](/kml/documentation/regions)\n: Regions provide culling and level-of-detail behavior that allow you to fine-tune how your data is presented in Google Earth. When used with NetworkLinks, Regions enable streaming of very large datasets, with \"smart\" loading of data at multiple levels of resolution (see the section on [Super-Overlays](/kml/documentation/regions#superoverlays)). You can also simulate Google Earth's layers using Regions.\n\n[Updates](/kml/documentation/updates)\n: You can incrementally update data loaded by NetworkLinks---changing, adding, and deleting KML data that was previously loaded into Google Earth.\n\n[Expiration](/kml/documentation/expiration)\n: This page discusses how to prevent KML data from becoming stale, through the use of HTTP headers and KML expiration times."]]