Template:Graph:Map with marks/doc
This is a documentation subpage for Template:Graph:Map with marks. It contains usage information, categories and other content that is not part of the original Template page. |
Markup | Result |
---|---|
Simple map with a single marker {{ Graph:Map with marks | |
|
Two markers with labels - one as diamond shape, one uses an image from Commons Text label can be customized with all of Vega text mark parameters by prepending "text" to their name {{ Graph:Map with marks | |
|
Set a different background image Also uses equirectangular projection {{ Graph:Map with marks | background=WorldMap-A non-Frame.png | |
|
Use a region of the world with a bounding box, and a right-aligned label Bounding box uses [left, bottom, right, top] Longitude: max left..right range is -180..180 Latitude: max bottom..top range is -90..90 {{ Graph:Map with marks | width=200 | height=200 | bbox=[90,-90,180,0] | background=WorldMap_-270,-90,-180,0.png | |
Shows an image of a map, and draws user-specified images/icons on top of it using latitude/longitude coordinates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
data | 1 | Comma separated list of JSON objects that describing what data to draw on the map | String | suggested |
background | background | Background map image filename | File | optional |
width | width | Total width of the graph | Number | optional |
height | height | Total height of the graph (Mercator projection is 2:1)
| Number | optional |
padding | padding | no description | Number | optional |
projection | projection | Name of the D3 geo projection to use | String | optional |