[OpenLayers-Users] Multiple layers display
Greg Ederer
greg at ergonosis.com
Thu Aug 14 17:33:27 EDT 2008
Oh, and here's my code:
wms = new OpenLayers.Layer.WMS(
"esv:countries - Tiled", "http://localhost:8080/geoserver/wms",
{
styles: '',
layers: 'esv:countries',
width: '800',
height: '362',
srs: 'EPSG:4326',
format: format,
tiled: 'true',
tilesOrigin : "-198,-98.68117980957031"
},
{
buffer: 0
}
);
stationsLayer = new OpenLayers.Layer.WMS(
"esv:grid_stations_daily_jan_1979 - Tiled",
"http://localhost:8080/geoserver/wms",
{
styles: '',
layers: 'esv:grid_stations_daily_jan_1979',
width: '569',
height: '550',
srs: 'EPSG:4326',
format: format,
tiled: 'true',
tilesOrigin : "-21.339,-40.85165"
},
{
buffer: 0
}
);
map.addLayer(stationsLayer);
map.addLayer(wms);
Thanks for taking a look!
Greg
Greg Ederer wrote:
> Hi,
>
> I have created two layers. I can add either of these layers to my map,
> and it displays correctly. But, when I add both layers, only the first
> one added appears.
>
> I'm probably making a simple, newbie mistake. Any suggestions?
>
> Thanks!
>
> Greg
>
>
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg at ergonosis.com
| 360.774.6848
|
More information about the Users
mailing list