Help:Attached KML
Wikipedia uses a range of picture, sound, and other files to enhance content and explain concepts that are difficult to understand with words only. 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 usually for articles on features such as roads, train lines, flight paths, and more.
Articles with KML files
[change | change source]In articles with a related KML file, the following box is displayed, usually towards the bottom of the page:
Articles may display additional links at the top-right of the page:
Viewing
[change | change source]Display within Wikipedia
[change | change source]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
[change | change source]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 September 2015, Bing Maps and Google Maps are the only linked web mapping services.
Download the KML file
[change | change source]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
[change | change source]- 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
[change | change source]If after clicking on the KML file link, a plain page full of code is displayed (see image for example):
- 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
[change | change source]- Template:Attached KML
- Tutorial on creating a KML file (on English Wikipedia)
- Meta:KML files
Notes
[change | change source]- ↑ 1.0 1.1 For image attribution, licensing, and information, see File:WMA_button2b.png