Fix coordinate translation / projection for world map

Issue #2 new
Michael Bethencourt repo owner created an issue

Example:

world_map.png

São Paulo is not there, instead quite a bit lower. I messed around with trial/error a bunch before giving up, so it's not just a simple offset. Not sure what I'm doing wrong.

The code that needs to be fixed:

https://bitbucket.org/michaelb/openlab/src/d5641dc8d3f454248cb50b1ed4ccfc8dac303543/openlab/openlab/location/models.py?at=master#cl-115

These functions are supposed longitude/latitude into a 0-100% which is then used by the CSS to position the elements on top of the map. They aren't doing it.

I think the map is an Equirectangular projection so i thought it'd be 1 to 1

Comments (2)

  1. Log in to comment