Hi Ray,

On Wed, Aug 4, 2010 at 11:53 AM, Ray <[email protected]> wrote:

> Hey everyone..
>
> Ok so I'm updating a Map API implementation from v2 to v3. It uses a
> Euclidean Projection formulae that's dependent upon the old 'zoom'
> parameter from the v2 interface.
>
> I looked at the API reference to see if perhaps that was still
> available as an overload along side just LatLng, but it doesn't appear
> to be.
>
> So my question is, is there a way to still get zoom in
> fromLatLngtoPoint()?
>

You read correctly: zoom is no longer a parameter to Projection.


> Barring that, could someone explain the change to me and why zoom was
> necessary to formulae before for custom projections, but isn't
> necessary now? It'd do wonders in giving me a headstart on this
> update.
>

Removing zoom from the Projection interface allows the API to define how
zooming works; namely that zooming in by 1 scales the viewport by 2x.  This
allows the API to implement animated zoom transitions even for custom
Projections, scaling the viewport from 1x to 2x.  This also allows the API
to project coordinates once and simply bit shift the projected coordinates
on zoom, improving performance.


> Thank you for any help.
>

Cheers
Ben


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

Reply via email to