Template:Graph:MapWithOverlays

From RobotX
Jump to navigation Jump to search
Template documentation[create]
<graph>
{
  //
  // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:MapWithOverlays
  //            Please do not modify it anywhere else, as it may get copied and override your changes.
  //            Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:MapWithOverlays
  //

  "version": 2, "width": 300, "height": 150, "padding": 0,
  "data": [
    {
      "name": "data",
      "values": [
      	{"lat":0, "lon":0},
      	{"lat":90, "lon":-180},
      	{"lat":-90, "lon":180}
      ]
    }
  ],
  "marks": [
    {
      "type": "image",
      "properties": {
        "enter": {
          "url": {"value": "wikirawupload:"},
          "width": {"signal": "width"},
          "height": {"signal": "height"}
        }
      }
    },
    {
      "name": "points",
      "type": "symbol",
      "from": {
        "data": "data",
        "transform": [{
            "type": "geo",
            "projection": "equirectangular",
            "scale": 47.8,
            "center": [-179.8,89.8],
            "translate": [0,0],
            "lon": "lon",
            "lat": "lat"
        }]
      },
      "properties": {
        "enter": {
          "x": {"field": "layout_x"},
          "y": {"field": "layout_y"},
          "fill": {"value": "#ff0000"},
          "size": {"value": 8},
          "shape": {"value": "cross"}
        }
      }
    }
  ]
}
</graph>