NERC-CEH / nyph-app

📱New Year Plant Hunt mobile application (BSBI)
GNU General Public License v3.0
1 stars 1 forks source link

highlighted map squares shown offset #18

Closed japonicus closed 7 years ago

japonicus commented 7 years ago

The map square marker is misaligned with the grid.

japonicus commented 7 years ago

I've inadvertently been building against a more recent of the geodesy library, where OsGridRef.parse() always returns metre precision co-ordinates, i.e.

OsGridRef.parse('SD59') OsGridRef {easting: 350000, northing: 490000}

whereas the version you've built against returns

OsGridRef.parse('SD59') OsGridRef {easting: 35, northing: 49}

This means that no offset applied, so the grid-square is offset SW by half the square length.

Will patch this so that either library works.

japonicus commented 7 years ago

closed by #19