On Wed, Jan 27, 2010 at 9:02 AM, evilC <[email protected]> wrote: > Thanks Ben. > > Whilst mapping game coordinates to lats and lngs sounds like a simple > option, it doesn't seem the "right" way to me. > > Lats and Lngs are surely angles, whereas the game world coordinates > are distance-based. If I were to shoehorn game coords into a latlng > system, and then they expand the game world, I have to re-shrink the > world to fit in the latlng system again. > > Is there a way to do away with lats and lngs altogether, or at least > change the numbering system so that it is not angle based or the > number scale is different? Ideally I would like to modify the API to > use actual world coordinates, rather than some ghastly bodge.
No; the public interfaces all use latitude/longitude. > Now this is a bit oversimplified: you'll have to tweak the projection so > > that eg. markers are placed in the right positions on your tiles, > otherwise > > all your overlays will be misaligned. > > By this do you mean the raising to the power of two for each zoom > level for tile coordinates (I saw something about that in the > documentation). > No, the v3 API handles zooming itself. But even at zoom 0 you'll need to write your JS Projection implementation to match the projection used in your tile server. > Regards > > Clive > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
