Hello people, i got a problem, i have Geoserver and GWC that is into geoserver working together, but i think i have problems with resolutions that i use in openlayers, because without resolutions i can see the map great but the GWC dont work and with reolutions the GWC works but the maps apairs unaligned, and i dont know what to do,i need a way to construct the indicated reoslutions to my sistem, but i dont know how to do it,here are the codes.
//----------------------------------------------------------------
bounds = new OpenLayers.Bounds(
- 84.956, 19.825,
- 74.132, 23.984
);
nav = new OpenLayers.Control.NavigationHistory(); var loadingpanel = new OpenLayers.Control.LoadingPanel();
controls = [
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.ScaleLine(),
new OpenLayers.Control.OverviewMap({mapOptions:{projection:"EPSG:4326", units:'degrees', maxExtent:bounds, numZoomLevels: 1}}),
new OpenLayers.Control.MousePosition(), loadingpanel,
nav
];
nav.activate();
options = {
controls : controls,
maxExtent : bounds,
resolutions: [0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 6.866455078125E-4, 3.4332275390625E-4, 1.71661376953125E-4, 8.58306884765625E-5, 4.291534423828125E-5, 2.1457672119140625E-5, 1.0728836059570312E-5, 5.364418029785156E-6, 2.682209014892578E-6, 1.341104507446289E-6, 6.705522537231445E-7, 3.3527612686157227E-7],
//maxResolution : 0.02528125,
projection : "EPSG:4326",
units : 'degrees'
};
map = new OpenLayers.Map('map', options);
var capa = new OpenLayers.Layer.WMS(titulo, "http://" + host + "/geoserver/une/wms",
{
'layers' : nombCapa.replace('une:',''),
transparent : true,
format : 'image/png',
STYLES : '',
tiled : true,
tilesOrigin : mapa.maxExtent.left + ',' + mapa.maxExtent.bottom
}
,
{
buffer: 0,
yx : {'EPSG:4326' : true},
attribution : 'Facilitado por Geocuba',
isBaseLayer : base,
opacity : opacity,
displayInLayerSwitcher : display,
transitionEffect : 'resize',
tileSize: new OpenLayers.Size(256,256)
}
);
mapa.addLayer(capa);
//------------------------------------------------------
i need help please, thanks to all
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--
Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas
Infomed: http://www.sld.cu/