Skip to content

Instantly share code, notes, and snippets.

@sn0opy
Last active May 12, 2020 14:38
Show Gist options
  • Save sn0opy/4f40f6f156a7353f1bfb5c9a8115c992 to your computer and use it in GitHub Desktop.
Save sn0opy/4f40f6f156a7353f1bfb5c9a8115c992 to your computer and use it in GitHub Desktop.
{
"style": "osm-bright",
"latitude": #(lat),
"longitude": #(lon),
"zoom": 17.5,
"width": 800,
"height": 500,
"scale": 1,
"format": "png",
"markers": [
#if(pointjson)
#for(wp in pointjson)
{
"url": "https://raw.githubusercontent.com/ccev/stopwatcher-icons/master/tileserver/#(wp.2)_gray.png",
"latitude": #(wp.0),
"longitude": #(wp.1),
"width": 48,
"height": 48,
#if(type == "portal")
"y_offset": 0
#else
"y_offset": -24
#endif
},
#endfor
#endif
{
"url": "https://raw.githubusercontent.com/ccev/stopwatcher-icons/master/tileserver/#(type)_normal.png",
"latitude": #(lat),
"longitude": #(lon),
"width": 64,
"height": 64,
#if(type == "portal")
"y_offset": 0
#else
"y_offset": -32
#endif
}
]
#if(pathjson)
,
"polygons": [
{
"fill_color": "#ffffff60",
"stroke_color": "#c7c7c7",
"stroke_width": 2,
"path": #(pathjson)
}
]
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment