KML

 

)untuk file yang dimuat dengan NetworkLink. Hal ini juga digunakan oleh gaya bersama (lihat Pin on a mountaintop #pushpin 170.1435558771009,-43.60505741890396,0 Play me! bounce 3 170.157 -43.671 9700 -6.333 33.5 5 10.0 5 Meluas Berisi Sintaksis ffffffff ff000000 ... default Deskripsi Menentukan bagaimana balon deskripsi untuk tanda tempat digambar. , jika ditentukan, digunakan sebagai warna latar belakang balon. Lihat fitur< > untuk diagram yang menggambarkan bagaimana balon deskripsi default muncul di Google Earth. Elemen khusus untuk BalloonStyle Warna latar belakang balon (opsional). Nilai warna dan opacity (alpha) dinyatakan dalam notasi heksadesimal. Kisaran nilai untuk satu warna adalah 0 hingga 255 (hingga). Urutan ekspresi adalah aabbggrr, di mana aa = alpha (00 sampai ff); bb=biru (00 sampai ff); gg=hijau (00 sampai ff); rr=red (00 sampai ff). Untuk alpha, sepenuhnya transparan dan sepenuhnya buram. Misalnya, jika Anda ingin menerapkan warna biru dengan 50 persen opacity ke overlay, Anda akan menentukan yang berikut: , di mana alpha= 0x7f, biru= 0xff, hijau= 0x00, dan merah= 0x00. Defaultnya adalah putih buram (ffffffff). 00ff00ff7fff0000 Nota: Penggunaan element dalam has telah usang. Gunakan instead. Warna latar depan untuk teks. Defaultnya hitam (ff000000). Teks yang ditampilkan dalam balon. Jika tidak ada teks yang ditentukan, Google Earth menarik balon default (dengan fitur in boldface, Fitur , tautan untuk arah mengemudi, latar belakang putih, dan ekor yang melekat pada koordinat titik Fitur, jika ditentukan). Anda dapat menambahkan entitas ke tag menggunakan format berikut untuk merujuk ke elemen anak Fitur: $[name], $[description], $[address], $[id], $[Snippet]. Google Earth terlihat dalam Fitur saat ini untuk entitas string yang sesuai dan menggantikan informasi itu di balon. Untuk memasukkan Ke sini - Dari sini arah mengemudi di balon, gunakan tag $[geDirections]. Untuk mencegah tautan petunjuk arah mengemudi muncul di balon, sertakan element dengan beberapa konten, atau dengan $[description] untuk menggantikan Fitur dasar . Misalnya, dalam kutipan KML berikut, bidang $[name] dan $[description] akan digantikan oleh dan fields yang ditemukan dalam elemen Fitur yang menggunakan BalloonStyle ini: This is $[name], whose description is:
$[description]
Jika adalah default,Google Earth menggunakan informasi yang disediakan dalam untuk membuat balon. Jika is bersembunyi,Google Earth tidak menampilkan balon. Di Google Earth, mengklik ikon Tampilan Daftar untuk Placemark yang bersembunyi menyebabkan Google Earth terbang ke Placemark. Contoh BalloonStyle.kml 1 BalloonStyle An example of BalloonStyle #exampleBalloonStyle -122.370533,37.823842,0 Meluas >ColorStyle< Terkandung oleh ... Jangan menempatkan gaya bersama dalam Folder. Contoh berikut menggambarkan penggunaan gaya bersama. Contoh Document.kml 1 Document Feature 1 #exampleStyleDocument -122.371,37.816,0 Document Feature 2 #exampleStyleDocument -122.370,37.817,0 Meluas >Kontainer< Berisi 0 atau lebih elemen yang berasal dari >Fitur< 0 atau lebih elemen yang berasal dari 0 atau lebih elemen berasal dari Kembali ke atas Elemen ini merupakan perpanjangan dari standar OGC KML 2.2 dan didukung di Google Earth 5.0 dan yang lebih baru. Pelajari lebih lanjut Sintaksis 0.0 Deskripsi memperluas dengan menentukan rentang waktu untuk acara. Waktu ditulis sebagai detik menggunakan tipe data ganda XML.gx:TourPrimitive Durasi dan Ketika durasi disertakan dalam elemen, itu menentukan lamanya waktu yang dibutuhkan browser untuk terbang dari titik sebelumnya ke titik yang ditentukan. bounce 10.2 ... Durasi dan Menentukan lamanya waktu di mana pembaruan berlangsung. Integer, float, dan bidang warna lancar animasi dari asli ke nilai baru sepanjang durasi; Boolean, string, dan nilai-nilai lain yang tidak meminjamkan interpolasi diperbarui pada akhir durasi. 5.0 .... Sintaksis ... ... ... ... Deskripsi Elemen ExtendedData menawarkan tiga teknik untuk menambahkan data kustom ke Fitur KML (NetworkLink, Placemark, GroundOverlay, PhotoOverlay, ScreenOverlay, Document, Folder). Teknik-teknik tersebut adalah Menambahkan data/pasangan nilai yang tidak diketik menggunakan element (dasar) Mendeklarasikan bidang diketik baru menggunakan element dan kemudian instancing mereka menggunakan element (lanjutan) Mengacu pada elemen XML yang didefinisikan dalam ruang nama lain dengan merujuk ruang nama eksternal dalam file KML (dasar) Teknik-teknik ini dapat dikombinasikan dalam satu file KML atau Fitur untuk potongan data yang berbeda. Untuk informasi selengkapnya, lihat Menambahkan Data Kustom di "Topik di KML." Elemen Khusus untuk ExtendedData Membuat pasangan nama/nilai yang tidak diketik. Nama ini dapat memiliki dua versi: nama dan displayName. Atribut nama digunakan untuk mengidentifikasi pasangan data dalam file KML. Elemen displayName digunakan ketika nama yang diformat dengan benar, dengan spasi dan pemformatan HTML, ditampilkan di Google Earth. Dalam men , notasi $[name/displayName] diganti dengan . Jika Anda mengganti nilai atribut nama element dalam format ini (misalnya, $[holeYardage], nilai atribut diganti dengan . Secara default, balon Placemark menampilkan pasangan nama / nilai yang terkait dengannya. Versi namayang diformat opsional, yang akan digunakan untuk tujuan tampilan. Nilai dari pasangan data. Club house 1 234 4 Elemen ini digunakan bersama dengan untuk menambahkan data kustom yang diketik ke Fitur KML. Elemen Skema (diidentifikasi oleh atribut schemaUrl) mendeklarasikan tipe data kustom. Objek data aktual ("contoh" dari data kustom) didefinisikan menggunakan elemen SchemaData. bisa menjadi URL lengkap, referensi ke ID Skema yang didefinisikan dalam file KML eksternal, atau referensi ke ID Skema yang didefinisikan dalam file KML yang sama. Semua spesifikasi berikut dapat diterima: schemaUrl="http://host.com/PlacesIHaveLived.kml#my-schema-id" schemaUrl="AnotherFile.kml#my-schema-id" schemaUrl="#schema-id" Elemen Skema selalu merupakan anak dari Dokumen. Elemen ExtendedData adalah anak dari Fitur yang berisi data kustom. Elemen ini memberikan nilai ke bidang data kustom yang diidentifikasi oleh atribut nama. Jenis dan nama bidang data kustom ini dinyatakan dalam element. Berikut adalah contoh mendefinisikan dua elemen data kustom: Easy trail Pi in the sky 3.14159 10 -122.000,37.002 Difficult trail Mount Everest 347.45 10000 -122.000,37.002 Elemen ini memungkinkan Anda untuk menambahkan data kustom yang tidak diketik. Pastikan untuk mereferensikan awalan ruang nama di element file Anda atau sebagai atribut element dan untuk memulai nama setiap elemen data dengan awalan ruang nama. Data kustom yang ditambahkan dengan cara ini disimpan dalam file KML tetapi tidak digunakan oleh Google Earth dengan cara apa pun. Itu selalu disimpan bersama dengan file. Contoh berikut menunjukkan menggunakan awalan ruang nama "kamp": 14 2 4 Terkandung oleh Elemen apa pun yang berasal dari >Fitur< Lihat juga Skema Sintaksis ... 1 0 ...
...
... ... ... ... ... ... ... ... ... ... ... <-- /Feature --> Deskripsi Ini adalah elemen abstrak dan tidak dapat digunakan secara langsung dalam file KML. Diagram berikut menunjukkan bagaimana beberapa elemen Fitur muncul di Google Earth. Elemen Khusus untuk Fitur nama <> Teks yang ditentukan pengguna ditampilkan di penampil 3D sebagai label untuk objek (misalnya, untuk Placemark, Folder, atau NetworkLink). Nilai Boolean. Menentukan apakah fitur ini digambar di penampil 3D saat awalnya dimuat. Agar fitur dapat terlihat, tag dari semua nenek moyangnya juga harus diatur ke 1. Di Google Earth List View, setiap Fitur memiliki kotak centang yang memungkinkan pengguna untuk mengontrol visibilitas Fitur. Nilai Boolean. Menentukan apakah Dokumen atau Folder muncul tertutup atau terbuka saat pertama kali dimuat ke panel Tempat. 0=runtuh (default), 1=diperluas. Lihat juga . Elemen ini hanya berlaku untuk Dokumen, Folder, dan NetworkLink. KML 2.2 mendukung elemen baru untuk memasukkan data tentang penulis dan situs web terkait dalam file KML Anda. Informasi ini ditampilkan dalam hasil pencarian geo, baik di browser Bumi seperti Google Earth, dan di aplikasi lain seperti Google Maps. Unsur ascription yang digunakan dalam KML adalah sebagai berikut: atom:elemen penulis - elemen induk untuk atom:nama atom:elemen nama - nama penulis atom:link element - berisi atribut href atribut href - URL halaman web yang berisi file KML / KMZ Elemen-elemen ini didefinisikan dalam Format Sindikasi Atom. Spesifikasi lengkap ditemukan di http://atompub.org. (lihat sampel yang berikut). Elemen adalah elemen induk untuk , yang menentukan penulis fitur KML. Menentukan URL situs web yang berisi file KML atau KMZ ini. Pastikan untuk menyertakan ruang nama untuk elemen ini dalam file KML apa pun yang menggunakannya: xmlns:atom="http://www.w3.org/2005/Atom" (lihat sampel yang mengikuti).
Nilai string yang mewakili alamat tidak terstruktur yang ditulis sebagai jalan standar, kota, alamat negara, dan / atau sebagai kode pos. Anda dapat menggunakan
tag untuk menentukan lokasi suatu titik alih-alih menggunakan koordinat lintang dan bujur. (Namun, jika semenmenmensamakan, itu lebih diutamakan daripada
.) Untuk mengetahui lokasi mana yang didukung untuk tag ini di Google Earth, buka Bantuan Google Maps. Alamat terstruktur, diformat sebagai xAL, atau eXtensible Address Language,standar internasional untuk pemformatan alamat. digunakan oleh KML untuk geocoding di Google Maps saja. Untuk detailnya, lihat dokumentasi API Google Maps. Saat ini, Google Earth tidak menggunakan elemen ini; gunakan
instead. Pastikan untuk menyertakan ruang nama untuk elemen ini dalam file KML apa pun yang menggunakannya: xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0" Nilai string yang mewakili nomor telepon. Elemen ini hanya digunakan oleh Google Maps Mobile. Standar industri untuk ponsel berkemampuan Java adalah RFC2806. Untuk informasi lebih lanjut, lihat http://www.ietf.org/rfc /rfc2806.txt. Deskripsi singkat dari fitur tersebut. Di Google Earth, deskripsi ini ditampilkan di panel Places dengan nama fitur. Jika Cuplikan tidak disediakan, dua baris pertama dari digunakan. Di Google Earth, jika Placemark berisi deskripsi dan Cuplikan, appears di bawah Placemark di panel Places, dan appears di balon deskripsi Placemark. Tag ini tidak mendukung markup HTML. has atribut maxLines, sebuah integer yang menentukan jumlah maksimum garis untuk ditampilkan. Konten yang disediakan pengguna yang muncul di balon deskripsi. Konten yang didukung untuk element berubah dari Google Earth 4.3 menjadi 5.0. Informasi spesifik untuk setiap versi tercantum di bawah ini, diikuti oleh informasi umum untuk keduanya. Google Earth 5.0 Google Earth 5.0 (dan yang lebih baru) mendukung konten teks biasa, serta HTML lengkap dan JavaScript, dalam balon deskripsi. Isi dari tag deskripsi diberikan oleh mesin browser web open source WebKit, dan ditampilkan seperti di browser berbasis WebKit. Pembatasan umum Link ke file lokal umumnya tidak diperbolehkan. Ini mencegah kode berbahaya merusak sistem Anda atau mengakses data Anda. Jika Anda ingin mengizinkan akses ke sistem file lokal Anda, pilih Preferensi > Memungkinkan akses ke file lokal dan data pribadi. Tautan ke file gambar pada sistem file lokal selalu diperbolehkan, jika terkandung dalam tag. Konten yang telah dikompresi ke dalam file KMZ dapat diakses, bahkan jika pada sistem file lokal. Cookie diaktifkan, tetapi untuk tujuan kebijakan asal yang sama, konten lokal tidak berbagi domain dengan konten lain (termasuk konten lokal lainnya). HTML HTML sebagian besar diberikan seperti di browser WebKit apa pun. Target diabaikan ketika dimasukkan dalam HTML yang ditulis langsung ke KML; semua tautan tersebut dibuka seolah-olah target diatur ke _blank. Setiap target yang ditentukan diabaikan. HTML yang terkandung dalam iFrame, bagaimanapun, atau dinamis dihasilkan dengan JavaScript atau DHTML, akan menggunakan target = "_self" sebagai default. Target lain dapat ditentukan dan didukung. Isi file KMZ, tautan jangkar lokal, dan metode tidak dapat ditargetkan dari HTML yang terkandung dalam iFrame. ;flyto Jika pengguna menentukan lebar iFrame, maka lebar iFrame akan tergantung pada semua konten lain dalam balon — pada dasarnya harus diabaikan saat menghitung ukuran tata letak. Aturan ini berlaku untuk elemen blok lain di dalam balon juga.width="100%" JavaScript Sebagian besar JavaScript didukung. Kotak dialog tidak dapat dibuat - fungsi seperti alert() dan prompt() tidak akan ditampilkan. Mereka akan, bagaimanapun, ditulis ke konsol sistem, seperti juga kesalahan dan pengecualian lainnya. CSS CSS diperbolehkan. Seperti CSS di browser web biasa, CSS dapat digunakan untuk gaya teks, elemen halaman, dan untuk mengontrol ukuran dan penampilan balon deskripsi. Google Earth 4.3 element mendukung teks biasa serta subset elemen pemformatan HTML, termasuk tabel (lihat contoh KML di bawah). Ini tidak mendukung teknologi berbasis web lainnya, seperti markup halaman dinamis (PHP, JSP, ASP), bahasa scripting (VBScript, Javascript), atau bahasa aplikasi (Java, Python). Dalam rilis Google Earth 4.2, video didukung. (Lihat contoh di bawah ini.) Informasi umum Jika deskripsi Anda tidak berisi markup HTML, Google Earth mencoba memformatnya, mengganti grafik baru dengan url
dan membungkus URL dengan tag jangkar. String URL yang valid untuk World Wide Web secara otomatis dikonversi ke hyperlink ke URL tersebut (misalnya, http://www.google.com). Akibatnya, Anda tidak perlu mengelilingi URL dengan < /a> tag untuk mencapai tautan sederhana. Saat menggunakan HTML untuk membuat hyperlink di sekitar kata tertentu, atau saat menyertakan gambar dalam HTML, Anda harus menggunakan referensi entitas HTML atau elemen CDATA untuk melarikan diri dari tanda kurung sudut, apostrof, dan karakter khusus lainnya. Elemen CDATA memberitahu parser XML untuk mengabaikan karakter khusus yang digunakan dalam tanda kurung. Elemen ini mengambil bentuk: Jika Anda memilih untuk tidak menggunakan elemen CDATA, Anda dapat menggunakan referensi entitas untuk mengganti semua karakter khusus. ]]> Perilaku Lain yang Ditentukan Melalui Penggunaan Element KML mendukung penggunaan dua atribut dalam element: href dan jenis. Elemen jangkar meningi atribut href yang menentukan URL. Jika href adalah file KML dan memiliki ekstensi file .kml atau .kmz, Google Earth memuat file itu secara langsung ketika pengguna mengkliknya. Jika URL berakhir dengan ekstensi yang tidak diketahui google earth (misalnya, .html),URL dikirim ke browser. Href dapat menjadi URL fragmen (yaitu, URL dengan tanda # diikuti oleh pengenal KML). Ketika pengguna mengklik tautan yang menyertakan URL fragmen, secara default browser terbang ke Fitur yang ID-nya cocok dengan fragmen. Jika Fitur memiliki elemen LookAt atau Camera, Fitur dilihat dari sudut pandang yang ditentukan. Perilaku dapat ditentukan lebih lanjut dengan menambahkan salah satu dari tiga string berikut ke URL fragmen: ;flyto (default) - terbang ke Fitur ;balon - buka balon Fitur tetapi jangan terbang ke Fitur ;balloonFlyto - buka balon Fitur dan terbang ke Fitur Misalnya, kode berikut menunjukkan untuk membuka file CraftsFairs.kml,terbang ke Placemark yang ID-nya adalah "Albuquerque," dan membuka balonnya: One of the Best Art Shows in the West ]]>
Jenis atribut digunakan dalam element ketika href tidak berakhir pada .kml atau .kmz,tetapi referensi perlu ditafsirkan dalam konteks KML. Tentukan hal berikut: type="application/vnd.google-earth.kml+xml" Misalnya, URL berikut menggunakan atribut tipe untuk memberi tahu Google Earth bahwa ia harus mencoba memuat file, meskipun ekstensi file .php: Mendefinisikan sudut pandang yang terkait dengan elemen apa pun yang berasal dari Fitur. Lihat and . Mengaitkan Fitur ini dengan jangka waktu()atau titik waktu(). URL Placemark
Saved from YouTubeVideos
]]> #sn_blue-dot_copy3 -93.47875999999999,45.083248,0 Meluas >Objek< Diperpanjang oleh wadah <> Elemen ini merupakan perpanjangan dari standar OGC KML 2.2 dan didukung di Google Earth 5.0 dan yang lebih baru. Pelajari lebih lanjut Sintaksis 0.0 bounce ... Deskripsi menentukan titik dalam ruang di mana browser akan terbang selama tur. Ini harus berisi satu AbstractView,dan harus berisi dan elemen, yang menentukan waktu yang dibutuhkan untuk terbang ke titik yang ditentukan dari titik saat ini, dan metode penerbangan, masing-masing. There are two allowed values for : smooth, and bounce. Smooth FlyTos allow for an unbroken flight from point to point to point (and on). An unbroken series of smooth FlyTos will begin and end at zero velocity, and will not slow at each point. A series of smooth FlyTos is broken by any of the following elements: bounce This means that velocity will be zero at the smooth FlyTo immediately preceding either of the above elements. A series of smooth FlyTos is not broken by elements. Bounce FlyTos each begin and end at zero velocity. Example 2.55 smooth -113.084448 36.567081 41277.571403 116.150227 absolute Extends Contains Syntax ... 1 0 ...
...
... ... ... ... ... ... ... ... ... ... ...
Description A Folder is used to arrange other Features hierarchically (Folders, Placemarks, NetworkLinks, or Overlays). A Feature is visible only if it and all its ancestors are visible. Example Folder.kml 1 A folder is a container that can hold multiple other objects Folder object 1 (Placemark) -122.377588,37.830266,0 Folder object 2 (Polygon) -122.377830,37.830445,0 -122.377576,37.830631,0 -122.377840,37.830642,0 -122.377830,37.830445,0 Folder object 3 (Path) 1 -122.378009,37.830128,0 -122.377885,37.830379,0 Extends Contains Any element derived from Syntax Description This is an abstract element and cannot be used directly in a KML file. It provides a placeholder object for all derived Geometry objects. Extends Extended By Syntax ... 1 0 ...
...
... ... ... ... ... ... ... ... ... ... ... ffffffff 0 ... 0 clampToGround ... ... ... ... 0 ...
Description This element draws an image overlay draped onto the terrain. The child of specifies the image to be used as the overlay. This file can be either on a local file system or on a web server. If this element is omitted or contains no , a rectangle is drawn using the color and bounds defined by the ground overlay.LatLonBox Elements Specific to GroundOverlay Specifies the distance above the earth's surface, in meters, and is interpreted according to the altitude mode. Specifies how the is interpreted. Possible values are clampToGround - (default) Indicates to ignore the altitude specification and drape the overlay over the terrain. absolute - Sets the altitude of the overlay relative to sea level, regardless of the actual elevation of the terrain beneath the element. For example, if you set the altitude of an overlay to 10 meters with an absolute altitude mode, the overlay will appear to be at ground level if the terrain beneath is also 10 meters above sea level. If the terrain is 3 meters above sea level, the overlay will appear elevated above the terrain by 7 meters. A KML extension in the Google extension namespace, allowing altitudes relative to the sea floor. Values are: relativeToSeaFloor - Interprets the as a value in meters above the sea floor. If the point is above land rather than sea, the will be interpreted as being above the ground. clampToSeaFloor - The specification is ignored, and the overlay will be draped over the sea floor. If the point is on land rather than at sea, the overlay will be positioned on the ground. Specifies where the top, bottom, right, and left sides of a bounding box for the ground overlay are aligned. Specifies the latitude of the north edge of the bounding box, in decimal degrees from 0 to ±90. Specifies the latitude of the south edge of the bounding box, in decimal degrees from 0 to ±90. Specifies the longitude of the east edge of the bounding box, in decimal degrees from 0 to ±180. (For overlays that overlap the meridian of 180° longitude, values can extend beyond that range.) Specifies the longitude of the west edge of the bounding box, in decimal degrees from 0 to ±180. (For overlays that overlap the meridian of 180° longitude, values can extend beyond that range.) Specifies a rotation of the overlay about its center, in degrees. Values can be ±180. The default is 0 (north). Rotations are specified in a counterclockwise direction. 48.25475939255556 48.25207367852141 -90.86591508839973 -90.8714285289695 39.37878630116985 Used for nonrectangular quadrilateral ground overlays. Example GroundOverlay.kml 7fffffff 1 http://www.google.com/intl/en/images/logo.gif onInterval 86400 0.75 37.83234 37.832122 -122.373033 -122.373724 45 Extends Contained By Syntax ... 0 0 -1 -1 onChange 4 never 4 1 ... ... Description Defines an image associated with an Icon style or overlay. The required child element defines the location of the image to be used as the overlay or as the icon for the placemark. This location can either be on a local file system or a remote web server. The , , , and elements are used to select one icon from an image that contains multiple icons (often referred to as an icon palette. Sunset.jpg /home/mydir/myiconpalette.jpg 138 138 Elements Specific to Icon An HTTP address or a local file specification used to load an icon. and If the specifies an icon palette, these elements identify the offsets, in pixels, from the lower-left corner of the icon palette.If no values are specified for x and y, the lower left corner of the icon palette is assumed to be the lower-left corner of the icon to use. and If the specifies an icon palette, these elements specify the width () and height (), in pixels, of the icon to use. For a description of and the other elements listed below, see . Contained By Syntax ffffffff normal 1 0 ... Description Specifies how icons for point Placemarks are drawn, both in the Places panel and in the 3D viewer of Google Earth. The element specifies the icon image. The element specifies the x, y scaling of the icon. The color specified in the element of is blended with the color of the . Elements Specific to IconStyle Resizes the icon. Note: The tag has been deprecated. Use instead. Direction (that is, North, South, East, West), in degrees. Default=0 (North). (See diagram.) Values range from 0 to 360 degrees. A custom Icon. In , the only child element of is : : An HTTP address or a local file specification used to load an icon. Specifies the position within the Icon that is "anchored" to the specified in the Placemark. The x and y values can be specified in three different ways: as pixels ("pixels"), as fractions of the icon ("fraction"), or as inset pixels ("insetPixels"), which is an offset in pixels from the upper right corner of the icon. The x and y positions can be specified in different ways—for example, x can be in pixels and y can be a fraction. The origin of the coordinate system is in the lower left corner of the icon. x - Either the number of pixels, a fractional component of the icon, or a pixel inset indicating the x component of a point on the icon. y - Either the number of pixels, a fractional component of the icon, or a pixel inset indicating the y component of a point on the icon. xunits - Units in which the x value is specified. A value of fraction indicates the x value is a fraction of the icon. A value of pixels indicates the x value in pixels. A value of insetPixels indicates the indent from the right edge of the icon. yunits - Units in which the y value is specified. A value of fraction indicates the y value is a fraction of the icon. A value of pixels indicates the y value in pixels. A value of insetPixels indicates the indent from the top edge of the icon. Example IconStyle.kml #randomColorIcon -122.36868,37.831145,0 Extends Contained By LabelStyle.kml #randomLabelColor -122.367375,37.829192,0 Extends Contained By LineStyle Example #linestyleExample 1 1 -122.364383,37.824664,0 -122.364152,37.824322,0 Extends Contained By ListStyle Examples 1 bgColor example 1 pl1 -122.362815,37.822931,0 pl2 -122.362825,37.822931,0 pl3 -122.362835,37.822931,0 #bgColorExample checkHideChildren example 1 pl4 -122.362845,37.822941,0 pl5 -122.362855,37.822941,0 pl6 -122.362865,37.822941,0 #checkHideChildrenExample radioFolder example 1 pl7 -122.362875,37.822951,0 pl8 -122.362885,37.822951,0 pl9 -122.362895,37.822951,0 #radioFolderExample Extends Contained By hollow box #examplePolyStyle 1 relativeToGround -122.3662784465226,37.81884427772081,30 -122.3652480684771,37.81926777010555,30 -122.365640222455,37.81986126286519,30 -122.36666937925,37.81942987753481,30 -122.3662784465226,37.81884427772081,30 -122.366212593918,37.81897719083808,30 -122.3654241733188,37.81929450992014,30 -122.3657048517827,37.81973175302663,30 -122.3664882465854,37.81940249291773,30 -122.366212593918,37.81897719083808,30 Extends Contained By Description A Style defines an addressable style group that can be referenced by StyleMaps and Features. Styles affect how Geometry is presented in the 3D viewer and how Features appear in the Places panel of the List view. Shared styles are collected in a and must have an id defined for them so that they can be referenced by the individual Features that use them. Use an id to refer to the style from a . Example Google Earth - New Polygon Here is some descriptive text #myDefaultStyles . . . Google Earth - New Path #myDefaultStyles . . . . Extends Contained By any Elements Specific to Style Syntax normal ... or Description A maps between two different Styles. Typically a element is used to provide separate normal and highlighted styles for a placemark, so that the highlighted version appears when the user mouses over the icon in Google Earth. Elements Specific to StyleMap (required) Defines a key/value pair that maps a mode (normal or highlight) to the predefined . contains two elements (both are required): , which identifies the key or normal #normalState highlight #highlightState StyleMap example #styleMapExample -122.368987,37.817634,0 Extends Contained By any Syntax Description This is an abstract element and cannot be used directly in a KML file. It is the base type for the New Zealand's Southern Alps #style 170.144,-43.605,0 Play me! 6.5 10.0 4.1 170.157 -43.671 9700 -6.333 33.5 0 2.4 Contained by Extended by http://www.example.com/audio/trumpets.mp3 0 Contains an element specifying a sound file to play, in MP3, M4A, or AAC format. It does not contain a duration. The sound file plays in parallel to the rest of the tour, meaning that the next tour primitive takes place immediately after the tour primitive is reached. If another sound file is cued before the first has finished playing, the files are mixed. The element specifies to delay the start of the sound for a given number of seconds before playing the file. pause Contains a single element, allowing the tour to be paused until a user takes action to continue the tour. 0.0 The camera remains still, at the last-defined gx:AbstractView, for the number of seconds specified before playing the next . Note that a wait does not pause the tour timeline - currently-playing sound files and animated updates will continue to play while the camera is waiting.gx:TourPrimitive Extends This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.2 and later. Learn more Syntax clampToGround ... ... ... ... ... Description A track describes how an object moves through the world over a given time period. This feature allows you to create one visible object in Google Earth (either a Point icon or a Model) that encodes multiple positions for the same object for multiple times. In Google Earth, the time slider allows the user to move the view through time, which animates the position of the object. A gx:MultiTrack element is used to collect multiple tracks into one conceptual unit with one associated icon (or Model) that moves along the track. This feature is useful if you have multiple tracks for the same real-world object. The Boolean element of a specifies whether to interpolate between the tracks in a multi-track. If this value is 0, then the point or Model stops at the end of one track and jumps to the start of the next one. (For example, if you want a single placemark to represent your travels on two days, and your GPS unit was turned off for four hours during this period, you would want to show a discontinuity between the points where the unit was turned off and then on again.) If the value for is 1, the values between the end of the first track and the beginning of the next track are interpolated so that the track appears as one continuous path. See the Google Earth User Guide for information on how to import GPS data into Google Earth. Why are tracks useful? Earlier versions of KML (pre–Google Earth 5.2) allow you to associate a time element with any Feature (placemark, ground overlay, etc.). However, you could only associate one time element with a given Feature. Tracks are a more efficient mechanism for associating time data with visible Features, since you create only one Feature, which can be associated with multiple time elements as the object moves through space. In addition, the track element is more powerful than the earlier mechanism (described in the Time and Animation chapter of the KML Developer's Guide) because provides a mechanism for interpolating the position of the object at any time along its track. With this new feature, Google Earth displays a graph of elevation and speed profiles (plus custom data, if present) for the object over time. "Sparse" Data When some data values are missing for positions on the track, empty () or () tags can be provided to balance the arrays. An empty or tag indicates that no such data exists for a given data point, and the value should be interpolated between the nearest two well-specified data points. This behavior also applies to ExtendedData for a track. Any element except can be empty and will be interpolated between the nearest two well-specified elements. Elements Specific to Track Specifies how altitude components in the element are interpreted. Possible values are clampToGround - (default) Indicates to ignore an altitude specification (for example, in the tag). relativeToGround - Sets the altitude of the element relative to the actual ground elevation of a particular location. For example, if the ground elevation of a location is exactly at sea level and the altitude for a point is set to 9 meters, then the elevation for the icon of a point placemark elevation is 9 meters with this mode. However, if the same coordinate is set over a location where the ground elevation is 10 meters above sea level, then the elevation of the coordinate is 19 meters. absolute - Sets the altitude of the coordinate relative to sea level, regardless of the actual elevation of the terrain beneath the element. For example, if you set the altitude of a coordinate to 10 meters with an absolute altitude mode, the icon of a point placemark will appear to be at ground level if the terrain beneath is also 10 meters above sea level. If the terrain is 3 meters above sea level, the placemark will appear elevated above the terrain by 7 meters. A KML extension in the Google extension namespace, allowing altitudes relative to the sea floor. Values are: relativeToSeaFloor - Interprets the altitude as a value in meters above the sea floor. If the point is above land rather than sea, the altitude will be interpreted as being above the ground. clampToSeaFloor - The altitude specification is ignored, and the point will be positioned on the sea floor. If the point is on land rather than at sea, the point will be positioned on the ground. A time value that corresponds to a position (specified in a element). The number of elements in a must be equal to the number of elements (and elements, if included). A coordinate value consisting of three values for longitude, latitude, and altitude, with no comma separators. For example: -122.207881 37.371915 156.000000 Note that the syntax for the element is different from the syntax for the element, which uses commas to separate the longitude, latitude, and altitude components. The number of elements specified should equal the number of time () and position () elements. You can specify an empty element for a missing value if necessary. This value is used to specify an additional heading, tilt, and roll value to the icon or model for each time/position within the track. The three floating point values are listed without comma separators and represent degrees of rotation. If is not specified, then Google Earth infers the heading, tilt, and roll of the object from its track. The number of elements specified should equal the number of time () and position () elements. You can specify an empty element for a missing value if necessary. Currently, icons support only heading, but models support all three values. Here is an example of setting this value: 45.54676 66.2342 77.0 If specified, the Model replaces the Point icon used to indicate the current position on the track. When a is specified within a , here is how the child elements of function: The element is ignored. The element is ignored. The value is combined with the orientation of the track as follows. First, the rotation is applied, which brings the model from its local (x, y, z) coordinate system to a right-side-up, north-facing orientation. Next, a rotation is applied that corresponds to the interpolation of the values that affect the heading, tilt, and roll of the model as it moves along the track. If no angles are specified, the heading and tilt are inferred from the movement of the model. Tip: If you are unsure of how to specify the orientation, omit the element from the and watch how Google Earth positions the model as it moves along the track. If you notice that the front of the model is facing sideways, modify the element in to rotate the model so that it points toward the front. If the model is not upright, try modifying the or elements. Custom data elements defined in a earlier in the KML file. It's often useful to add extended data associated with each time/position on a track. Bicycle rides, for example, could include data for heart rate, cadence, and power, as shown in Example of Track with Extended Data. In the , you define a for each custom data type. Then, for each data type, include a element containing elements that correspond to each time/position on the track. See the Adding Custom Data chapter of the KML Developer's Guide for more information on adding new data fields. In Google Earth, custom data is displayed in the Elevation Profile for the track. Simple Example This very basic example shows how to create parallel "arrays" of values for and . The number of time and position values must be equal. 2010-05-28T02:02:09Z 2010-05-28T02:02:35Z 2010-05-28T02:02:44Z 2010-05-28T02:02:53Z 2010-05-28T02:02:54Z 2010-05-28T02:02:55Z 2010-05-28T02:02:56Z -122.207881 37.371915 156.000000 -122.205712 37.373288 152.000000 -122.204678 37.373939 147.000000 -122.203572 37.374630 142.199997 -122.203451 37.374706 141.800003 -122.203329 37.374780 141.199997 -122.203207 37.374857 140.199997 Example of Track with Extended Data The boldface type in this example highlights the elements used to define and specify custom data for a bike ride. The custom data fields are internally named "heartrate," "cadence," and "power." The element defines the name to display for each set of values (Heart Rate, Cadence, and Power) and specifies the data type for each new field (heartrate and cadence are of type , and power is of type ). In Google Earth, this custom data is shown with the elevation profile for the track.intfloat This example is a more realistic presentation of a track, with custom icons and separate icon and line styles for highlight and normal modes. Note, however, that the example includes only seven sets of data values. The actual example includes tens of thousands of values. (Data courtesy of Sean Broeder. This data was collected with a Garmin Edge 705 with associated heart rate monitor and power meter.) GPS device Created Wed Jun 2 15:33:39 2010 2010-05-28T02:02:09Z 2010-05-28T02:02:56Z -122.205544 37.373386 1300.000000 normal #track_n highlight #track_h normal #multiTrack_n highlight #multiTrack_h normal #waypoint_n highlight #waypoint_h Heart Rate Cadence Power Tracks 2010-05-28T01:16:35.000Z #multiTrack 2010-05-28T02:02:09Z 2010-05-28T02:02:35Z 2010-05-28T02:02:44Z 2010-05-28T02:02:53Z 2010-05-28T02:02:54Z 2010-05-28T02:02:55Z 2010-05-28T02:02:56Z -122.207881 37.371915 156.000000 -122.205712 37.373288 152.000000 -122.204678 37.373939 147.000000 -122.203572 37.374630 142.199997 -122.203451 37.374706 141.800003 -122.203329 37.374780 141.199997 -122.203207 37.374857 140.199997 86 103 108 113 113 113 113 181 177 175 173 173 173 173 327.0 177.0 179.0 162.0 166.0 177.0 183.0 Extends Contained By Syntax ... ... ... ... Description Specifies an addition, change, or deletion to KML data that has already been loaded using the specified URL. The specifies the .kml or .kmz file whose data (within Google Earth) is to be modified. is always contained in a NetworkLinkControl. Furthermore, the file containing the NetworkLinkControl must have been loaded by a NetworkLink. See the "Topics in KML" page on Updates for a detailed example of how Update works. Elements Specific to Update Can contain any number of , , and elements, which will be processed in order. (required) A URL that specifies the .kml or .kmz file whose data (within Google Earth) is to be modified by an element. This KML file must already have been loaded via a . In that file, the element to be modified must already have an explicit id attribute defined for it. Modifies the values in an element that has already been loaded with a . Within the Change element, the child to be modified must include a targetId attribute that references the original element's id. This update can be considered a "sparse update": in the modified element, only the values listed in are replaced; all other values remained untouched. When is applied to a set of coordinates, the new coordinates replace the current coordinates. Children of this element are the element(s) to be modified, which are identified by the targetId attribute. Adds new elements to a Folder or Document that has already been loaded via a . The element in specifies the URL of the .kml or .kmz file that contained the original Folder or Document. Within that file, the Folder or Document that is to contain the new data must already have an explicit id defined for it. This id is referenced as the targetId attribute of the Folder or Document within that contains the element to be added. Once an object has been created and loaded into Google Earth, it takes on the URL of the original parent Document of Folder. To perform subsequent updates to objects added with this Update/Create mechanism, set to the URL of the original Document or Folder (not the URL of the file that loaded the intervening updates). Deletes features from a complex element that has already been loaded via a . The element in specifies the .kml or .kmz file containing the data to be deleted. Within that file, the element to be deleted must already have an explicit id defined for it. The element references this id in the targetId attribute. Child elements for , which are the only elements that can be deleted, are Document, Folder, GroundOverlay, Placemark, and ScreenOverlay. Example of http://www/~sam/January14Data/Point.kml -95.48,40.43,0 Example of This example creates a new Placemark in a previously created Document that has an id of "region24." Note that if you want to make subsequent updates to "placemark891," you will still use http://myserver.com/Point.kml as the . http://myserver.com/Point.kml -95.48,40.43,0 Example of This example deletes a Placemark previously loaded into Google Earth. (This Placemark may have been loaded directly by a NetworkLink with the specified URL, or it may have been loaded by a subsequent Update to the original Document.) http://www.foo.com/Point.kml Contained By Note: This element was deprecated in KML Release 2.1 and is replaced by , which provides the additional functionality of Regions. The tag will still work in Google Earth, but use of the newer tag is encouraged. Use this element to set the location of the link to the KML file, to define the refresh options for the server and viewer changes, and to populate a variable to return useful client information to the server. Back to top Apakah informasi ini membantu? Send feedback Recommended for you KML Tutorial KML is a file format used to display geographic data. Updated 7 Sep 2021 Displaying KML Build a custom map for your site using styled maps, 3D buildings, indoor floor plans, multi-modal directions, and more. Updated 17 Nov 2021 Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Last updated 2020-08-19 UTC. Blog Blog Twitter Twitter Connect Blog Facebook Medium Twitter YouTube

Komentar

Postingan populer dari blog ini