Template:Zone map v2

From Guild Wars 2 Wiki
Jump to: navigation, search

Description[edit]

This template uses Widget:Zone map v2, which queries the map API and uses Leaflet.js to display interactive maps on zone pages. Additional markers such as Heart of Thorns Mastery Insights are hardcoded on the widget page instead of using the API.

Usage[edit]

This template can only be used once per page.

Parameters[edit]

All parameters are optional.

map 
Optional. The ID of the map to display, defaults to {{#var:mapID}} as set by Template:Location infobox based on input parameters.
zoom 
Initial zoom level for the map. Default is 4.
height
width 
The minimum height and width of the map pane, in pixels. Default height is 400px, default width is 800.
clear 
The type of clear applied around the map container. Choices of left, right, or both. Defaults to left.
region 
Only specify if a region mismatch exists between endpoints (e.g. Mount Maelstrom and Sparkfly Fen)
floor 
Only specify if a floor mismatch exists between endpoints (e.g. Crystal Oasis and other Path of Fire maps)
centerX / centerY 
Override default XY center coordinates upon page load.
localtiles 
If set to anything, uses local tiles from the wiki instead of the API from Category:Map raster tiles.

Example wikicode[edit]

{{Zone map v2|map=15|width=800}}