Template:Map with marks/doc
Appearance
Markup | Result | ||
---|---|---|---|
Simple map with a single marker {{ Map with marks | lat=37.8 | lon=-122.4 | zoom=5 | |
| ||
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 {{ Map with marks | lat=37.8 | lon=-122.4 | zoom=9 | |
| ||
{{ Map with marks | lat=-33.8688 | lon=151.2093 | zoom=10 | {"lat":-33.8688, "lon":151.2093, "img":"wikirawupload:{{filepath:Opera_House_and_ferry._Sydney.jpg|48}}", "width":48, "height": 36, "text": "Sydney", "textFontWeight": "bold", "textFontSize": 20, "textColor": "#00f", "textAlign": "right", "textDx": -30}, }} |
|
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 |