[OpenLayers-Users] Re: Scaleline in State Plane Projection

Andreas Hocevar ahocevar at opengeo.org
Thu May 24 09:42:58 PDT 2012


For a more accurate scale line, include proj4js (if you haven't
already) and configure the ScaleLine control with geodesic: true.
Units should always be the units for the SRS, and
OpenLayers.INCHES_PER_UNIT should not be modified.

Andreas.

On Wed, May 23, 2012 at 6:40 PM, GeoGEOrge <awmlamp at yahoo.com> wrote:
> I found I needed two things to make my ScaleLine control show up without NaN
> in EPSG:2249:
> units: "ft",
> OpenLayers.INCHES_PER_UNIT.value=12;
>
> I had been using units: "feet" which did not seem to cause any problems, but
> seems to be incompatible with ScaleLine
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Scaleline-in-State-Plane-Projection-tp4963568p4976441.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list