Hi Arnd,
I solved this by making a call to map.zoomToExtent(). I think I hit
reply instead of reply-all when I posted my solution; so it only went
to Chris, instead of the list.
Thanks!
Greg
Arnd Wippermann wrote:
instead format:
format, try something like this:
format : 'png',
Arnd Wippermann
Thanks, Chris.
I have modified my _javascript_ code as follows:
function init()
{
format = 'image/png';
map = new OpenLayers.Map("map");
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}
);
map.addLayer(wms);
}
The page now loads without errors, and the pan and zoom controls are
displayed; but the esv:countries layer does not appear.
Any ideas?
Thanks!
Greg
Christopher Schmidt wrote:
On Thu, Aug 14, 2008 at 01:08:31PM -0700, Greg Ederer wrote:
function init()
{
map = OpenLayers.Map("map");
wms = new OpenLayers.Layer.WMS(
^^^ Compare these two lines.
(You're missing a 'new' before the Map() call.)
Regards,
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| [EMAIL PROTECTED]
| 360.774.6848
|
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| [EMAIL PROTECTED]
| 360.774.6848
|
|
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users