Jump to content

Help:Attached KML

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Evad37 (talk | contribs) at 04:19, 24 June 2015 (Created page with '{{Reader help}} Wikipedia uses a variety of multimedia files to enhance content and explain concepts that are difficult to convey via text alone. Keyhole M...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Wikipedia uses a variety of multimedia files to enhance content and explain concepts that are difficult to convey via text alone. Keyhole Markup Language (KML) files specify a set of features that can be displayed in compatible mapping or geospatial software, including web mapping services. On Wikipedia, KML files are commonly accompany articles related to linear features such as roads, train lines, flight paths, and more.

Articles with KML files

In articles with a related KML file, the following box is displayed, usually towards the bottom of the page:

KML is not from Wikidata

Articles may display additional links at the top-right of the page:

Route map: Bing    [1]

Viewing

Display within Wikipedia

For articles which display links at the top-right of the page, click on the globe symbol ()[1] to show a draggable, zoomable, and clickable map, with the linear feature from the KML file highlighted in blue.

Display on a web mapping service

Popular web-based mapping services, which directly support the display of Wikipedia's KML files, are linked in the KML box in the article. Additionally, links may also appear at the top-right of the page. Following the link to the specified web mapping service will load that website, with the map zoomed to the linear feature from the KML file, which will be highlighted.

As of March 2015, Bing Maps is the only linked web mapping service. Google Maps was previously available, but no longer allows KML files to be displayed in their classic maps.[2]

Download the KML file

The raw KML file is available for download, for use in compatible mapping or geospatial software. It is linked from the KML file link in the KML box.

The exact method for downloading the file will vary depend on your operating system and web browser.

Method 1

  • Either click on the KML file link, or right-click on the link and select "Download file as..." (or a similar option)
  • A file index.php will be presented for download (containing the KML content)
  • Rename the file so that it ends in .kml (index.kml for example)
  • Download the file.

Method 2

  • If after clicking on the KML file link, a plain page full of code is displayed, then:
  • Select the entire contents of the page (Ctrl+A on Windows), and then copy it (Ctrl+C on Windows)
  • Paste the contents into a plain text editor such as Notepad
  • Save the file, with a file name ending in .kml, and with the "Save as type" set to "all files" (or similar)

See also

Notes

  1. ^ a b For image attribution, licencing, and information, see File:WMA_button2b.png
  2. ^ KML content isn't available in Google Maps. Google Maps Help. Retrieved 24 June 2015.