[OpenLayers-Users] Bounding Box numbers are changed

Juan Jesús Cremades Monserrat relicary at gmail.com
Tue Feb 21 07:44:55 EST 2012


Hi!

I have the next problem: In my openlayers script I have the next lines:

var options = {
controls : [new OpenLayers.Control()],
minExtent : new OpenLayers.Bounds(-1, -1, 1, 1),
maxResolution : 0.35,
maxZoomLevel : 10,
zoom: 4,
tileSize : new OpenLayers.Size(400, 550) //Tamaño de las "tiles" que
conforman el mapa
};
map = new OpenLayers.Map('olmap', options);
map.projection = "EPSG:25830";

map.maxExtent = new
OpenLayers.Bounds(455869.51775148,4178967.4556213,968443.48224852,4531032.5443787);

The units are meters, but when I execute this scripts the BBOX values at
the reguest are the next:

http://localhost/cgi-bin/mapserv.exe?...&REQUEST=GetMap&...&SRS=EPSG%3A25830&BBOX=712154.28789062,4354998.6246094,712158.71210938,4355001.3753906&WIDTH=809&HEIGHT=503

Why this numbers change? The map isn't rendered corretly.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120221/a7926a15/attachment.html


More information about the Users mailing list