• Welcome to the new COTI server. We've moved the Citizens to a new server. Please let us know in the COTI Website issue forum if you find any problems.
  • We, the systems administration staff, apologize for this unexpected outage of the boards. We have resolved the root cause of the problem and there should be no further disruptions.

TravellerMap and J-6 rendering

Sstefan

SOC-12
I seem to have small issues with trying to get the poster maker to get a J-6 jumpmap. It works ok for a J-6 map located within a sector, but when it spans into another sector, those hexes remain blank. I am fairly certain it is because I have to input the sector name in order to fill the "map area" and have only included the relevant sector for the center of the J-6, but how can I get TravMap to display the adjoining systems?

On a side note... is it possible to allow the postermaker to show an area larger than a sector... say 6 subsectors by 6 six subsectors?

Maybe even a domain-sized poster?
 
Last edited:
Use the API not the poster maker. When you use the maker it is just using the data in the form, which is why adjacent sectors are blank. The API uses the actual site data. The API is just a matter of putting the right parameters together in the URL. See https://travellermap.com/doc/api for all the details and examples.

For Jump maps, you can also just click on a world on the map and expand the info box; it will have links to jump maps of various ranges.
 
Maybe I'm just a little slower than "the average person", or just plain lazy... I haven't been able to get a map "printed" (PDF) that shows anything larger than a sector.

Trying to read through the API stuff left me confused for the moment.

What I'm trying to get to is ( as an example) a map of the Empty Quarter surrounded by the related subsectors on all sides; six subsectors by six subsectors in essence.

Thanks a great big bunch for the assist....
 
Last edited:
The docs assume you understand how to craft a URL with query parameters, and how to read API documentation. If you're not a software engineer it will require some trial and error. The basic strategy is that you're wanting to craft a URL. Start with something that works (e.g. examples below) and iterate, changing one piece at a time.

Poster API docs

The section starts off with examples, then does into more details. It sounds like you want something like:

https://travellermap.com/api/poster?domain=vland

And then toss additional options on, like:

https://travellermap.com/api/poster?domain=vland&scale=16&options=9207&accept=application/pdf

If you want an arbitrary rectangle of space, use the x1/y1/x2/y2 parameters instead of domain. x/y values are a count of pixels from Reference (Core 0140), positive is trailing/rimward, like hexes.

JumpMap API docs

Similarly, you probably want a URL like:

https://travellermap.com/api/jumpmap?sector=spin&hex=1910&jump=3

... and then add additional options to customize, e.g.:

https://travellermap.com/api/jumpma...yle=draft&options=9207&accept=application/pdf
 
it's getting a little clearer now, but please bear with me...

https://travellermap.com/api/poster...llhexes=1&options=9207&accept=application/pdf will get me the domain map for Vland... fine and good.

"arbitrary rectangle of space, use the x1/y1/x2/y2 parameters instead of domain." gets me into a little trouble.

When I try https://travellermap.com/api/poster...style=print&allhexes=1&accept=application/pdf I get a bad request.

The above example was just me trying to get a reference point to see where I would need adjustment. I take it that x1/y1 would be the "upper right" and x2/y2 would be the "lower left" of the rectangle.

Thanks for your patience...
 
I'm trying to use the "arbitrary rectangle" formula. Is there an easy way to determine the x1y1, x2y2 from Reference? I'm wanting an off center of the Marches area.
 
I'm trying to use the "arbitrary rectangle" formula. Is there an easy way to determine the x1y1, x2y2 from Reference? I'm wanting an off center of the Marches area.

Easy? Try counting hexes. Or guess, then refine your guess. I promise your computer won't eat you if you get it wrong.

A sector is 32x40. The Marches is 4 sectors Spinward and 1 sector Coreward of Core, so you're wanting something like -4x32 and -1x40 and then subtract another 1 on the x axis and 40 on the y axis because Reference is at 0140. So like -129 and -80 or so for the top-left corner of the Marches. Probably off by one, but start with that and update your guess as necessary.

(Sorry if I'm not seeming helpful. It really is just basic math and geometry, no magic.)
 
In an earlier post you said "count pixels" not squares/hexes and that really confused me (not that it takes much) :p
Thanks
 
Back
Top