If you just need to do coordinate transforms there is a library "proj4as" that is an actionscript port of the proj4 library. Very useful for geographic projection transformations. You can find it as part of the open scales project.
http://openscales.org/ However not much use unless you know the projections you're using ;) Michael On Oct 18, 10:36 pm, Aaron Beall <[email protected]> wrote: > Thanks for the response, guys. > > 1. I don't think the map projection I have is Mercator. Unfortunately > I'm not sure what projection it is exactly, but it's apparently a > commonly used one because about 50% of the maps of the USA online are > identical to it. It's a more "spherical" looking projection. > > 2. I am not showing the Google maps or anything related to google. > > Given that, I think Google maps doesn't fit my needs. Do you happen to > know somewhere else I could look for a solution? > > "Projection transformations can get VERY complex. " > > Indeed; a good summary of my quest so far. :) > > - Aaron > > On Oct 18, 12:34 am, mic <[email protected]> wrote: > > > > > > > > > Just note that this will only work for you if that image you are > > trying to draw on top is using the same projection as google maps > > does. Ie Mercator projection with WGS84 ellipsoid. > > > See if you can get a google map to look the same as your image > > otherwise you might be wasting your time trying to use this just to > > transform lat/longs to screen coordinates. > > > Projection transformations can get VERY complex. > > > Regards, > > Michael > > > On Oct 17, 9:45 pm, Darek <[email protected]> wrote: > > > > Yes, it does. > > > The Map class provides a getProjection() method, which itself gives > > > you the possibility to call fromLatLngToPixel(latLng:LatLng, > > > zoom:Number) and fromPixelToLatLng(pixel:Point, zoom:Number, > > > opt_nowrap?:Boolean). (http://code.google.com/intl/com-COM/apis/maps/ > > > documentation/flash/reference.html#IProjection) > > > > As far as I know you are not allowed to use the maps API without > > > showing the Google map, but concult the API Terms for further > > > details:http://code.google.com/intl/com-COM/apis/maps/terms.html > > > > Regards, Darek -- You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-api-for-flash?hl=en.
