BridgesUNCC / bridgesAPI

Back-end Architecture for the BRIDGES Project
http://bridges-cs.herokuapp.com/
MIT License
2 stars 4 forks source link

Window coord_system_type #34

Open squeetus opened 5 years ago

squeetus commented 5 years ago

Client will add 'window' coord_system_type And may also add 'window' to JSON (x1,y1,x2,y2)

Optionally project points' location[0], location[1] through linear scales with the given window dimensions.

If window is set but window dimensions are not passed, just ignore for now.

squeetus commented 5 years ago

Current progress: https://github.com/squeetus/bridgesAPI/tree/window

if window is set but dimensions are not passed, we use d3.extent to compute min and max x and y domains to map into viewport ranges.