Jump to content

User:Evad37/kmlToJson

From Wikipedia, the free encyclopedia

KmlToJson (source) converts KML files into GeoJSON. On Template:Attached KML subpages (where KML files are stored), the script adds a "GeoJSON" link near the "Move" link (in the 'More' dropdown menu for Vector skin; a tab in Monobook skin) that does the conversion when clicked. Copy the result and paste into an appropriate subpage of Wikipedia:Map data (example: Wikipedia:Map data/Wikipedia KML/Iowa Highway 192). The map data can then be used in mapframe maps, e.g. by using {{maplink}}'s |raw= parameter:

{{maplink|frame=yes|plain=yes|frame-align=center|frame-width=290|frame-lat=41.253|frame-long=-95.862|zoom=11|raw={{Wikipedia:Map data/Wikipedia KML/Iowa Highway 192}}}}

Map

Installation

[edit]

To install the script, add the line:

importScript('User:Evad37/kmlToJson.js'); // [[User:Evad37/kmlToJson]]

to Special:MyPage/common.js.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy