You are here: Wiki » Development » Map upgrade 1

Map upgrade 1

Map upgrade 1 (todo_working)
Priority3
Componenttools
Fixable byadmin

Improve the map with the following features / changes:

  • Switch logo handling to bit-map
  • Move data out of git repository to allow easier editing of map data
    • This will make it easier to add extra ovelays as well, such as a trade route
    • Will also enable overlay for territories of Superpowers
  • Add Union logo to Unity in sector 10 -6
  • Additional toggle for Fringe Worlds (default: fringe worlds not visible)
  • Improve custom layer support:
  • Layers are very rough now. Their definition should be laid out as follows:
    1. name: the layer name
    2. items: multiple visual components make up this layer
      1. renderer: the name of the renderer for this item. The renderer is an atomic function that has been registered int the map library. It is responsible for rendering the layer's SVG.
      2. data: the data intended for this specific renderer. The exact details of the data structure are dependent upon to the renderer implementation.
      3. [group]: an optional group name in which this item belongs. Groups should work as the current systems layer.
  • To allow this new structure, the renderer methods should be split into atomic component renderers, and the default system rendere will be split into two.
    • Renderers should be composable (i.e., one rendere must be able to invoke another) to enable reuse of renderers like the label renderer (currently embedded in the systems renderer only)
    • Renderers should do data checking and throw on any invalid structure.
  • Multiple layers could share a file (this requires further thought)

Related todos: Map foreign powers, Highlight sectors in the map

 
dev/map_upgrade.txt · Last modified: 2012/05/28 20:54 (external edit)
|
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki