[OpenLayers-Users] this.initialize is undefined

Christopher Schmidt crschmidt at metacarta.com
Thu Aug 14 16:13:51 EDT 2008


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



More information about the Users mailing list