Hi List,
I'm having a problem adding a ScaleLine to my map. The scale is way way
off. One block is being show at about 1000 miles.
The first problem is, I'm a programmer, not a mapper. I know very
little about this mapping stuff.
My data is in PostGIS. Projection is EPS:3417, I think.
I have:
var ls = new OpenLayers.Control.LayerSwitcher();
var sl = new OpenLayers.Control.ScaleLine();
sl.displaySystem = 'english';
// sl.geodesic = true;
map = new OpenLayers.Map("map", {
controls: [
new OpenLayers.Control.Navigation( {zoomWheelEnabled: false} ),
new OpenLayers.Control.PanZoomBar(),
ls,
sl,
new OpenLayers.Control.Scale()
],
numZoomLevels: 10,
maxExtent: new OpenLayers.Bounds([%minx%], [%miny%], [%maxx%], [%maxy%]),
maxResolution: "auto",
unit: 'f',
projection: "EPSG:3417"}
);
The [%minx%] etc gets replaced from the .map file with the actual
extent. In this case:
EXTENT 4668572 3794206 4796306 4011261
The map seems to work and zooming in and out work. Its just the ScaleLine.
I've tried with:
sl.geodesic = true;
and without.
I'm at a loss about what the problem might be. I'd be grateful for any
pointers.
-Andy
PS: sorry if this double posts, sent from the wrong account the first time.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users