[OpenLayers-Users] Problems with ScaleLine Control
Gorka López Rivacoba
gorka.lopez.rivacoba at gmail.com
Mon Apr 20 03:35:28 EDT 2009
Hello,
I have two similar applications, one in EPSG:23030 (ED50 / UTM zone 30N) and
the other in EPSG:4326 (WGS 84)
I defined a resolutions array for each application. These arrays are the
following:
- EPSG:23030
- resolutions =
[5600,2800,1400,700,560,280,140,70,56,28,14,7,5.6,2.8,1.4,0.7,0.28,0.14,0.07];
- EPSG:4326 (the same used in Layer/Google.js)
- resolutions =
[1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.00004291534423828125,0.00002145767211914062,0.00001072883605957031,0.00000536441802978515,0.00000268220901489257];
This arrays are more less equivalent (when I ask for a map in a determined
zoom in both appications, the requested images are more less the same)
But when I put a ScaleLine control the displayed information of this control
in EPSG:4326 is not ok (the scale is very small). For example:
- EPSG:23030
- Reolution: 0,7
- Scale: 2,2cm = 50 meters
- EPSG:4326
- Resolution: 0.00000536441802978515
- Scale: 18cm = 0,001 meter
Can anybody help me with this incident?
Thanks in advance.
Best regards,
Gorka López
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090420/8a1c7fd8/attachment.html
More information about the Users
mailing list