[OpenLayers-Users] Markers on Google move around N/S
Salvaro
asufsc at gmail.com
Fri Sep 5 07:22:10 EDT 2008
Thanks again Christopher :).
Which was the solution to make the controls work (in Spherical Mercator)
before the displayProjection function?
Is possible to change displayProjection (or projection) on-the-fly or only
is possible to change the options when you create the object?
Thanks,
Salvaro.
Christopher Schmidt-2 wrote:
>
> 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
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://n2.nabble.com/Markers-on-Google-move-around-N-S-tp834225p840975.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list