KML
Maps supports KML via
- KML export, part of integration with Semantic MediaWiki
kmlparameter for Google Mapsgkmlparameter for Google Maps
External KML
The kml parameter accepts both files uploaded to the wiki and URLs of external KML documents. External documents are fetched by the browser of everyone viewing the map, so the host they come from learns each reader’s IP address and user agent, and can change what it serves after the wiki edit was reviewed.
Since Maps 14.2.0, the $egMapsAllowExternalKml configuration parameter, also available as general.allowExternalKml on the MediaWiki:Maps config page, controls whether external KML is allowed. It defaults to true, which keeps the behavior described above. When set to false, kml values that are not files on the wiki are dropped, and NetworkLink elements within a KML document may only point to the wiki itself. The setting does not apply to gkml, which Google fetches and renders on its own servers.
Also, since Maps 14.2.0, NetworkLink elements are followed at most three levels deep, so a KML file that links back to itself no longer makes the browser fetch in an endless loop.
See also
- Keyhole Markup Language Wikipedia article
- Leaflet GeoJSON