Widget:Locator map
From Guild Wars 2 Wiki
Jump to navigationJump to search
This widget uses Leaflet.js and a wiki-hosted version of the official maps/continents API endpoints to display locator maps on the wiki. This widget displays the locator maps for one map. The provided sector id is shaded in red.
Usage
Parameters
- continent
- Required. The continent id (1 = Tyria, 2 = The Mists)
- map
- Required. The map id. All sectors within this map will be shown with a black border and no fill.
- sector
- Required. The sector id. This will be rendered in red with a bold border.
- cache
- Optional. If set to n, disables caching of the output.js query.
- debug
- Optional. If set to y, prints certain variables to the browser's developer console.
Example wikicode
{{#Widget:Locator map | continent = 1 | map = 15 | sector = 47 }}
Notes
- This widget should be used via Template:Locator map so that its usage can be tracked.