Hi,
I'm trying to get a minimal application working with OpenLayers and my
local GeoServer instance. I have created a FeatureType in GeoServer
called esv:countries, and I can view this using the mini-map preview
function of GeoServer.
I copied the layer instantiation code for my test
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,
--
Christopher Schmidt
MetaCarta
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:
instead format: format, try something like this:
format : 'png',
Arnd Wippermann
_
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Greg Ederer
Gesendet: Donnerstag, 14. August 2008 22:23
An: Christopher Schmidt
Cc: Openlayers Users List
Betreff: Re: [OpenLayers-Users
',
Arnd Wippermann
Von:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im
Auftrag von Greg Ederer
Gesendet: Donnerstag, 14. August 2008 22:23
An: Christopher Schmidt
Cc: Openlayers Users List
Betreff: Re: [OpenLayers-Users] this.initialize is undefined
Thanks, Chris.
I