Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts

2011-11-13

Macro Routes and Label Cleanup


I've added "macro scale" routes - the Jump-5, Jump-4, and Zhodani Core Routes, visible at low zoom levels. These aren't visible if you zoom out too far because they make the map ugly. They also disappear if you zoom in, well before the micro-scale routes, because they don't line up well. I'll try and fix that - I've already tweaked K'kree Outpost borders in Gn'hk'r/Gelath slightly.

Other changes and bug fixes:

  • Polity labels now wrap correctly in PDF Posters (example)
  • Added CORS note to API docs - short version: modern browsers make the JSONP hack unnecessary
  • Fix glyph layout in the side-bar Legend
  • Smaller names at the macro scale (e.g. J-5 Route) now show by default. This changes the map's default option value to 1015. Older permalinks won't have this set, adjust if necessary.


Ω

2009-08-17

Now Serving PDFs

It's live. (Be gentle!)

The API docs have been updated, but here's the short version:

For Poster.aspx, Tile.aspx or JumpMap.aspx, either pass an HTTP "Accept" header with "application/pdf" or include "accept=application/pdf" in either the query string (GET) or form data (POST).

Since it took a whopping 10 seconds, I also added a checkbox to the post example if you want to generate PDFs from your custom data.

Once any bugs are shaken out of this update I plan to add a link to the bottom of the main map page which offers "give me a printable version" of whatever you're looking at. I could make it either "smart" and offer Charted Space, Domain, Sector, Quadrant or Subsector depending on scale, or "dumb" and spew out exactly what you see on screen but in PDF form. I lean towards "smart". Ω