Explanation
The Poster API supports the HTTP POST method for submitting custom sector data for
rendering. Three variations are supported:
- POST text/plain Content
- POST File Attachment
- POST Form Data
Usage:
http://www.travellermap.com/Poster.aspx?sector=SECTORNAME[&scale=N][&subsector=X][&rotation=R][&options=O]
Parameters:
- sector - sector name, URL encoded (required)
- scale - scale in pixels/parsec (default is 64)
- subsector - subsector index (A-P) (optional; if not specified, whole sector is rendered)
- rotation - rotate the image, 1 for 90° clockwise, 2 for 180°, 3 for 90° counterclockwise
- options - rendering style options
Notes:
- Image format depends on selected options ("Candy" produces JPEG, otherwise GIF)
- If subsector is specified, only that subsector is rendered
- Scale is pixels/parsec
POST text/plain Content
This cannot be done through a Web page except via XmlHttpRequest, which doesn't
make a distinct demo than the examples below. However, it is the simplest format
for most HTTP clients to work with.
- POST with encoding type "text/plain"
- Sector data is specified the content
- Only sector data (.SEC) is supported, not metadata (borders, etc)