On Wed, Sep 09, 2009 at 03:21:04PM -0400, ashley_c_mort wrote: > What exactly does setting the 'units' property on the map and its layers > do? > > We have a program where our map and all of our layers were created by > including units:'km' (I can't find a reason for this). This was causing a > problem where we were getting errant scale information from the getScale() > function. Switching it back to 'dd' seems to resolve that getScale() issue > with no other effects. What is the intended or proper use of the 'units' > property? I do not fully understand it.
It changes any scale calculations, and nothing else. In a typical basic OL config, the value will actually have no effect at all. The 'units' should be the units of the mapExtent/data -- unless you have a different projection configured, 'dd' is the right value. -- Chris > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
