i have a game that described a planet and is a sphere.
on the client side, the world is separated to tiles (images) and i mapped it follow by this and this, so now when the user is zooming / dragging the world he's see the right location follow by the middle-center geo coordinate and global pixel.
now, on my server side, i need to put data on my planet (in other words, to draw it on the tiles i mentioned above - but it's doesn't matter for this discussion).
i have array of data items with same dimensions (width/height) that should be populate on the planet. from my own understanding, i need to find the geo coordinate of each data-item and then use the function geoToGlobalPX() to get it's location against the whole 2d planet's map, and finally 'put' it on the planet.
my problem is to find this geo coordinate, since i can't run over the planet from pixel(0, 0) to pixel(PLANET_SIZE, PLANET_SIZE) and each iteration grow the current-position in item-data-width because the range of location is decreasing as much you're going up/down from the equator, so on the top latitude (~85) i'll have more less data-items than on the equator.
i tried to read on the articles above about meters-per-pixel but i still don't really understood how i can integrate it on my system.
i hope you understood my and someone will have some advice for me.