Skip to content

Architecture

David Kocich edited this page Aug 31, 2017 · 2 revisions

Angular app architecture

All visible content as its functionality is in components directory. Logic used in HTML templates should be minimal and concentrated more in related typescript files. All advanced functionality should be handled in the services/processing.service.

Editing of data

There are several types of edits possible in the editor and all edits are then saved as separate edit steps in the edit history. New types of changes will be added and some changes are joined together (e. g. multiple changes of one tag are saved as one edit which can be undone later). After each change, this edit history is synced with the browser’s localStorage so all edits are saved, accessible and applied again after the user returns. New edit types are going to be created.

Edit steps types are:

  • 3 different edit types for adding/removing/changing of tags
  • Changing the ordering of route’s members
  • Adding of node elements
  • Modifying of node's geometry
  • Adding of new routes
  • Toggling of node's membership in a route
  • Creating of route_master relation
Clone this wiki locally