Template:InteractiveMap

Revision as of 15:59, 20 June 2026 by Oros (talk | contribs) (Created page with "<includeonly><div class="interactive-map" data-dzi="{{{dzi|}}}" data-markers="{{{markers|}}}" data-height="{{{height|}}}" data-coord-helper="{{{coordhelper|}}}" data-cors="{{{cors|}}}"></div></includeonly><noinclude> This template embeds an interactive, deep-zoom map with clickable pins. == Usage == <pre> {{InteractiveMap | dzi = https://your-host.example.com/map.dzi | markers = Project:World map/markers | height = 700 }} </pre> Place it on its own line. == Pa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template embeds an interactive, deep-zoom map with clickable pins.

Usage

{{InteractiveMap
| dzi      = https://your-host.example.com/map.dzi
| markers  = Project:World map/markers
| height   = 700
}}

Place it on its own line.

Parameters

Parameter Required Description
dzi yes URL of your .dzi file (the file produced alongside the _files tile folder).
markers no A wiki page that contains the pin JSON (e.g. Project:World map/markers), or a direct URL to a .json file.
height no Viewer height in pixels. Default 600.
coordhelper no Set to 1 to show a helper box with the live zoom level and click-to-copy coordinates, for finding the x/y and zoom thresholds of new markers.
cors no Set to 1 only if your tiles are served from a different domain than the wiki.

The JavaScript and CSS that power this template live in MediaWiki:Common.js and MediaWiki:Common.css.