Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Latest commit

 

History

History
48 lines (34 loc) · 1.58 KB

CONCEPTION.md

File metadata and controls

48 lines (34 loc) · 1.58 KB

Conception

Order In Code

Statics are before non-statics.

  1. Constants
    1. Public constants
    2. Private constants
  2. Attributes
    1. Public attributes
    2. Private attributes
  3. Constructors
  4. Public Inner Classes
  5. Methods
    1. Of methods (constructor like)
    2. Public methods
    3. Public overrides
    4. Private methods
      1. JavaFX related methods
      2. Other private methods
  6. Private Inner Classes

Styling

The styling rules are defined in the java-style-rules.xml file.

Public Interface Modifications

PointWebMercator

Created a new static method of(double lat, double lon) designed to be human friendly and mainly used in testing. It takes a latitude and longitude in degrees and returns the corresponding PointWebMercator object.

TileManager.TileId

Created a new static method of(PointWebMercator point, int zoomLevel) designed to retrieve the TileId containing a point in the Web Mercator projection.

MapViewParameters

Changed the method withMinXY to another method withShiftedBy. It allows to shift the map view by a given amount along the X and Y axis. We changed the method because we actually want to shift the map view when using withMinXY which required to call the getters of the map view.

WaypointsManager

We were frustrated by the fact that when we try to zoom with the cursor on a waypoint's pin, the zoom was not performed as it was registered by the scroll event of the pin and not the one from the map pane. We decided to cascade the waypoint's pin's zoom event to the map pane's zoom event.