OODA WIKI:Map data

From OODA WIKI

The subpages of this template can be used to store GeoJSON map data related to an article.

Why?

GeoJSON map data cannot be directly uploaded and stored in the File namespace. While map data should usually be stored on Commons (see mw:Help:Map data), until August 2018 only CC0 licences were not allowed. Because of this former restriction, this process was set up so that data with licences compatible with OODA WIKI's CC-BY-SA-3.0 licencing (e.g. as CC-BY licences), they could be stored as subpages here on OODA WIKI.

Storing data on OODA WIKI subpages can allow the same data to be used in multiple articles with different features given prominent styling depending on the article title. For example, OODA WIKI:Map data/Columbus Register of Historic Properties uses parser functions such as "stroke": {{#ifeq:{{PAGENAME}}|Old Oaks Historic District|"#ff0000"|"#666666"}}.

How

Created a subpage of this page. It should probably follow the convention used on Commons of /data source/title. At the start of the page, in a ‎<noinclude>...‎</noinclude> section, include the {{information}} and licencing templates.

The user script User:Evad37/kmlToJson can be used to generate GeoJSON data from a KML file.

If parser functions are used, ensure that they are not used within quotation marks, e.g. use

"stroke": {{#ifeq:{{PAGENAME}}|Foo|"#ff0000"|"#666666"}}

rather than

"stroke": "{{#ifeq:{{PAGENAME}}|Foo|#ff0000|#666666}}"

Displaying the data

Use {{Mapbox}} or {{Maplink}} (with |raw={{OODA WIKI:Map data/SUBPAGE}})

See also