Skip to content

Instantly share code, notes, and snippets.

@riccardolardi
Last active June 10, 2019 18:47
Show Gist options
  • Save riccardolardi/03117fe2786d374b388ee4a4fc3611f5 to your computer and use it in GitHub Desktop.
Save riccardolardi/03117fe2786d374b388ee4a4fc3611f5 to your computer and use it in GitHub Desktop.
// .js instead of .json for convenience
{
"id": "string",
"original-loc": {
"lat": "double",
"lon": "double"
},
"name": "string",
"tag": "string",
"country-code": "string",
"city": "string",
"view": {
"lat": "double",
"lon": "double",
"zoom": "double",
"emblems": [
{
"id": "string",
"lat": "double",
"lon": "double",
"offx": "double", // internal for maptool
"offy": "double", // internal for maptool
"stackid": "int",
"texthalign": "string", // left, right
"textvalign": "string", // top, middle, bottom
"textwidthscreen": "int", // internal for maptool
"textwidthsvg": "int", // pixels in svg-space
"textheightsvg": "int", // pixels in svg-space
"active": "bool",
"render": "bool", // internal for maptool
},
// ...
]
}
}
@riccardolardi
Copy link
Author

As discussed on June 4th 2019 (OS, EE, ML, RL)

@riccardolardi
Copy link
Author

Added texthalign, textvalign, textwidth, render options

@riccardolardi
Copy link
Author

Removed render option. All emblems in "emblems" array are to be rendered

@riccardolardi
Copy link
Author

Added offx, offy, render for internal use in maptool

@riccardolardi
Copy link
Author

Added textwidthscreen (maptool internal), for playout use textwidthsvg and textheightsvg (relative to svg)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment