Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





User:Evad37/kmlToJson





User page  

Talk  



Language  

Watch  

Edit  


< User:Evad37
 


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]]

toSpecial:MyPage/common.js.


Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Evad37/kmlToJson&oldid=1071422704"
 



Last edited on 12 February 2022, at 14:49  


Languages

 



This page is not available in other languages.
 

Wikipedia


This page was last edited on 12 February 2022, at 14:49 (UTC).

Content is available under CC BY-SA 4.0 unless otherwise noted.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop