[OpenLayers-Users] scalebars
Robert Buckley
robertdbuckley at yahoo.com
Tue Jul 19 15:48:14 EDT 2011
Hi,
I am still having problems understanding scales and spherical mercator. Is it
possible to define the map scales so that they are not rediculous numbers. In my
app it is not working.
http://maps.zgb.de/www/eeg/search.html
var map = new OpenLayers.Map("map",{
projection:epsg3857,
displayProjection: epsg4326,
units: "m",
scales: [1000000, 500000, 100000, 50000, 25000, 10000, 5000, 1000],
maxExtent: new OpenLayers.Bounds(-20037508, -20037508,20037508, 20037508),
restrictedExtent: new OpenLayers.Bounds(946290.410001, 6707196.356766,
1368222.80606, 6965247.764211),
controls: [new OpenLayers.Control.MouseDefaults()
,new OpenLayers.Control.PanZoomBar()
,new OpenLayers.Control.MousePosition()
,new OpenLayers.Control.ScaleLine({geodesic: true})]
});
thanks for any tips,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110719/bccda7e8/attachment.html
More information about the Users
mailing list