I don't understand this. The documentation for the various methods on the MapCanvasProjection object do not reference 'zoom' at all. [This is unlike V2 where the zoom is passed into the various conversion methods]. It could be that there is a Projection object (and, indeed, 'Projection' is the type of the projection property on a MapType), but I assumed that this was a mistype for MapCanvasProjection as there is no Projection object documented.
The only reference to zoom in MapCanvasProjection is: getWorldWidth() number The width of the world in pixels in the current zoom level. If I am implementing a MapCanvasProjection, then how do I discover the current zoom level? [Bear in mind you can have multiple maps on the same page, each with different zoom levels, and no way to reach any map object from the MapCanvasProjection object] I suspect that each of the methods is missing a zoom parameter. You certainly wouldn't want to make the current zoom a property of the projection. Philip On Feb 19, 1:30 am, Ben Appleton <[email protected]> wrote: > In v3 the API handles zooming. > > On 19 Feb 2010 14:30, "Philip" <[email protected]> wrote: > > This is doable in V2 maps -- I have a projection that supports UTM for > the old maps. It seems that the projection support in V3 maps is not > yet baked. I don't see how to actually implement a projection with the > API that is specified -- in particular, there is no zoom parameter > passed to the projection. Calculating pixel coordinates without > knowing the zoom is tough. > > Sorry > > Philip > > On Feb 13, 6:50 pm, jbogdani <[email protected]> wrote: > > > My answer is: Is there any way to work i... > > -- 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.
