Thank you Brian, it was that dumb error (and more). Interestingly, I was able to overlay WFS layers without passing the options to the map object, strange.
Thank you everyone once again, Luís On Wed, May 11, 2011 at 3:13 PM, BMcBride <[email protected]> wrote: > Louis, > > First, you have to pass your map options to the map constructor after the > div: > map = new OpenLayers.Map('map', options); > > > Also- it's not necessary to use proj4js when you are working with EPSG:4326 > and EPSG:900913, openlayers can handle these natively. > > Try: > var options = { > projection: new OpenLayers.Projection("EPSG:900913"), > displayProjection: new OpenLayers.Projection("EPSG:4326"), > units: "m", > maxResolution: 156543.0339, > maxExtent: new OpenLayers.Bounds(-20037508, -20037508, > 20037508, 20037508) > }; > > map = new OpenLayers.Map('map', options); > > > ----- > Bryan McBride, GISP > OpenGeo - http://opengeo.org > Expert service straight from the developers. > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Overlaying-WMS-layers-on-Google-Maps-tp6351168p6352008.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
