GithubHelp home page GithubHelp logo

inexorabletash / travellermap Goto Github PK

View Code? Open in Web Editor NEW
116.0 30.0 54.0 70.63 MB

The source code to TravellerMap.com

Home Page: https://travellermap.com

License: Other

HTML 17.21% C# 55.62% JavaScript 20.25% CSS 4.76% Python 0.06% Perl 2.01% ASP.NET 0.01% Raku 0.08%
traveller rpg

travellermap's People

Contributors

77topaz avatar bobbyjim avatar cthulhustig avatar cyberiaresurrection avatar garnfellow avatar grauenwolf avatar grondak avatar inexorabletash avatar leighheron avatar mmarquee avatar nathan-brazil avatar pmoule avatar samuei avatar tjoneslo avatar wvan478 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

travellermap's Issues

No label for Hiver Young Worlds

Adding the following MapLabel to the labels in Render.cs will add a label to show the "Hiver Young Worlds" on the new maps

        new MapLabel("Vargr Enclaves", 95, -135),            
        new MapLabel("Hiver Young Worlds", 90, 135)

Render markers to canvas

Two cases:

  • custom markers w/ urls - if not loaded, schedule a load/invalidate. Otherwise draw, similar to the overlay path.
  • standard "you are here" markers w/o URLs. The image is controlled by CSS so there are different styles to handle.

Handle webglcontextlost event

Seem to be seeing context lossage on OSX in Chrome 49.

Verify, and handle "webglcontextlost" and regenerate canvas (same as resize does)

Credits not updated on double-click

There appears to be a race where the double-click triggers an "immediate" update, but a preceding update from the position/scale triggers a "delayed" update which then results in the credits hiding?

Milieu: fallback data

Instead of vast swaths of empty space, consider fallback data approaches:

  • Allow defined fallbacks, e.g. for M1000 it's okay to just use 1105
  • Otherwise, use placeholders (i.e. dotmaps) based on 1105

To close the Points of Interest menu one must click on the Search button

via email: "The Points of Interest button on the Beta version opens a selection menu in the same manner as the share button, legend button, change map appearance button, and the help, feedback, and more button. A second click on the four mentioned buttons closes the menu, however to close the Points of Interest menu one must click on the Search button. Wouldn't a second click on the Points of Interest button to close the menu be in keeping with the function of the four other The Points of Interest button on the Beta version opens a selection menu in the same manner as the share button, legend button, change map appearance button, and the help, feedback, and more button. A second click on the four mentioned buttons closes the menu, however to close the Points of Interest menu one must click on the Search button. Wouldn't a second click on the Points of Interest button to close the menu be in keeping with the function of the four other buttons?"

Incorporate April 2014 T5SS Data Updates

  • .xlsx to .tab files
  • add new T5SS 4-char allegiance codes to global table
  • add 4-char to 2-char allegiance table
  • render 4-char or 2-char allegiances depending on scale
  • handle T5SS base codes - switch based on sector source
  • rebase images
  • T5SS output should use T5SS base codes (uncollapsed)
  • Booklet should show T5SS base codes (uncollapsed)
  • update doc/secondsurvey (base codes, allegiances)
  • update metadata references (e.g. Border, Route allegiances)

Verify, for both legacy and T5SS sectors:

  • sector data:
    • SEC
    • T5Tab
    • T5Col
  • metadata:
    • MSEC
    • XML
    • JSON
  • world data sheet
  • sector booklet
  • map rendering at 8/16/32/64/128 px/pc
  • map legends

Add marker links to /go/

Examples:

https://travellermap.com/go/spin/1910?marker=res/markers/beowulf.png

https://travellermap.com/go/spin/1910?yah - (you are here)

"Screenshots" (via menu) with windows > 2048px are offset oddly

The maximum tile dimensions are 2048, and the x/y coordinates for api/tile are multiples of the width. So when 2560 gets clamped to 2048 everything goes wacky.

Up the limits (and watch out for hitting memory limits, e.g. by clamping # of pixels not dimensions independently) and/or correct the x/y parameters when w/h get clamped.

Reduce memory waste by Routes

Profiling indicates that Routes are responsible for significant memory use. There are about 10k routes in the database, and each is fairly heavyweight:

  • Start and End hexes (ints - could be shorts instead)
  • Start/End offsets (each is a Point of two ints, could be just 4 sbytes total)
  • Style (nullable LineStyle enum, probably int)
  • Width (nullable float)
  • Color (nullable Color)
  • Allegiance (string)
  • Type (string)

One option would be a RouteGroup with the metadata and lighter weight route objects inside. This would also reduce the size of the XML.

Another would be to allow routes to contain multiple points.

Support more msec syntax

  • base abbrev codes - e.g. base A NS indicates A decodes to Naval and Scout base
  • base code sym color name - sym is a Zapf Dingbats character
  • region - like border but only filled, not stroked
  • label options high, low, left, right
  • Render types for labels subsec, quadrant, sector, custom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.