Search for Albers in
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/arcgislink/src/arcgislink.js


On Sep 29, 12:02 pm, Albert Sun <[email protected]> wrote:
> Hello Friendly People,
>
> I'm trying to implement a map with a custom base map and a custom
> projection. I started from the code examples 
> herehttp://code.google.com/apis/maps/documentation/javascript/maptypes.html
> and I'm trying to implement an Albers Equal Area Projection instead of
> the Gall Peters one. I'm using this formula to do 
> ithttp://mathworld.wolfram.com/AlbersEqual-AreaConicProjection.html
>
> The equations aren't coming out right though, and the functions aren't
> working properly as inverses of each other.
>
> When I do albers.fromPointToLatLng(albers.fromLatLngToPoint(new
> google.maps.LatLng(32, -80))) I get a LatLng where the longitude is
> right, but the latitude wrong. In the fromPointToLatLng function, its
> trying to take the arcsin of a number greater than one.
>
> I'm pretty sure I need to scale the results from the functions up and
> down to world coordinates but am not sure how to do it.
>
> My code here:
>
> http://albertsun.info/misc/maptype-base.html
>
> Any help would be much appreciated!
>
> Thanks,
>
> Albert

-- 
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.

Reply via email to