On Fri, Jan 14, 2011 at 8:45 PM, Mathieu Lavoie
<[email protected]> wrote:
> If I set the id property for a WMS layer, I get the following error:
>
> Error: this.events is null
> Source File:
> http://localhost:8080/map-service/openLayers/lib/OpenLayers/Layer/Grid.js
> Line: 83
>
> masterMap = new OpenLayers.Layer.WMS("MasterMap",
>                                 "Whatever URL", {
>                                         width : 500,
>                                         srs : projection,
>                                         layers : baseLayer,
>                                         height : 500,
>                                         styles : '',
>                                         format : format
>                                 }, {id: 'test',
>                                         singleTile : true,
>                                         ratio : 1,
>                                         isBaseLayer: true
>                                 });
>
>
> any thoughts?

This may be a bug in the library. Passing an id to a layer constructor
isn't common, why do you need it?


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to