[OpenLayers-Users] Markers on Google move around N/S
Christopher Schmidt
crschmidt at metacarta.com
Thu Sep 4 11:20:10 EDT 2008
On Thu, Sep 04, 2008 at 07:40:49AM -0700, Salvaro wrote:
>
> Thanks Christopher.
>
> Another thing I saw in the code:
> Why the variable projection receives a String and displayProjection receives
> an object OpenLayers.Projection?
Backwards compatibility. In the past, we didn't *have* projection
objects: they're new in 2.6.
displayProjection is new in 2.6, so we went with the 'new way' of doing
things *only*: the Map will atually convert the string to a Projection
object latre on if you pass a string (which is why we have
getProjection(), and getProjectionObject() -- in 3.0, getProjection()
will start just returning the object, and we'll drop
getProjectionObject.)
So: "historical reasons", but you shouldn't have to worry about it: if
you prefer, you can always use objects.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list