คู่มือสําหรับนักพัฒนาซอฟต์แวร์
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ส่วนนี้ประกอบด้วยหน้าเว็บที่มีข้อมูลเพิ่มเติมเกี่ยวกับองค์ประกอบ KML ที่สําคัญและวิธีใช้
- ไฟล์ KMZอัปเดต
ดูวิธีจัดแพ็กเกจ (และบีบอัด) ไฟล์ KML รวมถึงรูปภาพ การวางซ้อน ไอคอน และไฟล์เสียงที่เกี่ยวข้องทั้งหมดเป็นหน่วยเดียวกันซึ่งสามารถโพสต์หรือส่งเป็นเอนทิตีเดียวได้
- การทัวร์ชม
- Google Earth 5.0 เปิดตัวการเดินทาง: การควบคุมแบบ KML ที่ควบคุมผ่านอวกาศและเวลา องค์ประกอบที่เกี่ยวข้องกับทัวร์ชมจะอยู่ในเนมสเปซของส่วนขยาย Google
- โหมดระดับความสูง
- แนะนําองค์ประกอบในเนมสเปซของส่วนขยายของ Google ทําให้ Google Earth 5.0 นําผู้ชมออกสู่ผิวน้ําได้ด้วย ClampToSeaFloor และโหมดระดับความสูงสัมพัทธ์ ส่วนบทนี้พูดถึงโหมดดั้งเดิมที่อยู่เหนือพื้นด้วย
- เวลาและภาพเคลื่อนไหว
- ฟีเจอร์ใดก็ได้ใน KML อาจมีข้อมูลเวลาที่เกี่ยวข้อง เมื่อไฟล์ KML มีฟีเจอร์พร้อมองค์ประกอบ TimeSpan หรือ TimeStamp แล้ว Google Earth จะแสดงแถบเลื่อนเวลา เมื่อใช้แถบเลื่อนและปุ่มเล่น ผู้ใช้จะ "เล่น" ลําดับทั้งหมดหรือเลือกแต่ละช่วงเวลาเพื่อแสดงได้
- กล้อง
- องค์ประกอบกล้องมีวิธีเพิ่มเติมในการระบุมุมมองของฟีเจอร์ กล้องใช้กับ PhotoOverlays ซึ่งเป็นอีกฟีเจอร์หนึ่งใน KML 2.2 < Camera> มอบการควบคุมแบบอิสระ 6 องศาในมุมมองของคุณ คุณจึงสามารถจัดตําแหน่งกล้องในอวกาศแล้วหมุนรอบแกน x, y และ z ได้
- การวางซ้อนภาพ
- องค์ประกอบ PhotoOverlay ช่วยให้คุณระบุตําแหน่งทางภูมิศาสตร์ของภาพถ่ายใน Earth ได้ และระบุตําแหน่งและการวางแนวของกล้องที่ดูการวางซ้อนนี้ การวางซ้อนภาพอาจเป็นสี่เหลี่ยมผืนผ้าง่ายๆ แบบ 2 มิติ ทรงกระบอกบางส่วนหรือทั้งหมด หรือทรงกลม (สําหรับพาโนรามาแบบ 360 องศา) องค์ประกอบย่อยของ ImagePyramid ของ PhotoOverlay มอบการจัดการที่มีประสิทธิภาพสําหรับรูปภาพขนาดใหญ่ที่กําหนดเองใน Google Earth
- ข้อมูล Sky ใน KML
- ตอนนี้คุณแสดงข้อมูลท้องฟ้าบน Google Earth ได้แล้ว หน้าเว็บนี้จะอธิบายวิธีตั้งค่าไฟล์ KML เพื่อดูท้องฟ้าพร้อมเคล็ดลับในการแปลงพิกัดท้องฟ้ามาตรฐานเพื่อแสดงใน Google Earth, โหมดท้องฟ้า
- การเพิ่มข้อมูลที่กําหนดเอง
- คุณเพิ่มข้อมูลที่กําหนดเองลงในฟีเจอร์ KML ได้ 3 วิธีดังนี้ ขึ้นอยู่กับประเภทของข้อมูลที่กําหนดเอง องค์ประกอบ ExtendedData ใหม่ช่วยให้คุณเพิ่มข้อมูลที่ไม่ได้พิมพ์ ข้อมูลพิมพ์ หรือข้อมูล XML ที่กําหนดเองไปยังฟีเจอร์ KML ได้ Google Earth จะเก็บข้อมูลนี้พร้อมกับไฟล์ ข้อมูลที่ไม่ได้พิมพ์และข้อมูลที่คุณพิมพ์มีองค์ประกอบการแสดงผลที่สามารถใช้สําหรับเทมเพลตรูปแบบและการแทนที่เอนทิตีในบอลลูน
- รุ่น
- วัตถุ 3 มิตินี้จะจําลองแบบธรรมชาติในพื้นที่พิกัดของตัวเองและส่งออกเป็นไฟล์ ภาพต่อกันได้ จากนั้นจึงนําเข้าไปยัง Google Earth และวางบนพื้นผิวโลก
- ภูมิภาค
- ภูมิภาคต่างๆ จะแสดงภาพรวมและรายละเอียดระดับที่ช่วยให้คุณปรับแต่งวิธีแสดงข้อมูลใน Google Earth ได้ เมื่อใช้ร่วมกับ NetworkLinks ภูมิภาคจะเปิดใช้สตรีมมิงชุดข้อมูลขนาดใหญ่มาก โดยมีการโหลดข้อมูล "อัจฉริยะ" ที่ความละเอียดหลายระดับ (ดูส่วนการวางซ้อนซ้อน) นอกจากนี้ คุณยังสามารถจําลองเลเยอร์ของ Google Earth โดยใช้ภูมิภาคได้ด้วย
- อัปเดต
- คุณสามารถอัปเดตข้อมูลที่โหลดโดย NetworkLinks ค่อยๆ เปลี่ยน เปลี่ยนแปลง เพิ่ม และลบข้อมูล KML ที่เคยโหลดลงใน Google Earth ก่อนหน้านี้
- วันหมดอายุ
- หน้านี้พูดถึงวิธีป้องกันไม่ให้ข้อมูล KML ไม่มีอัปเดตผ่านการใช้ส่วนหัว HTTP และเวลาหมดอายุของ KML
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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."]]