0

I am looking to migrate from Google Maps to planetary.js and I need to move a bunch of markers. Does anyone know how Google Maps coordinates match to coordinates in planetary.js?

If I have a Google Maps location such as "-33.654437, 151.188164" - what does this map to in planetary.js?

2 Answers2

0

Those should be latitude/longitude coordinates, and you can be converted into x/y coordinates on the planet's projection via D3's projection. The projection is exposed in Planetary.js as planet.projection.

Michelle Tilley
  • 157,729
  • 40
  • 374
  • 311
0

As it seems they are the same, switching the x and y coordinate works for me.

Google / Openstreetmap: "-33.654437, 151.188164"
Planetary.js: (151.188164, -33.654437)