Hi, a lot of these google and baselayer issues have been fixed recently. Are you seeing his problem with OpenLayers 2.8 or trunk? If the latter, then please create a ticket. If the former, then please try a nightly build or check out trunk from svn.
Regards, Andreas. [email protected] wrote: > > Hi, > I have a problem using an empty base layer with a google layer. They > are defined like this > var googleH = new OpenLayers.Layer.Google( "Google Hybrid", { type: > G_HYBRID_MAP, 'sphericalMercator': true} ); > var aucunContexte = new OpenLayers.Layer("AucunContexte",{isBaseLayer: > true}); > > I have an overlay layer > var overlay = new OpenLayers.Layer.WMS('RSS', > 'http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=MAPCA&',{layers: > 'RSS', transparent: "true", format:"image/gif"},{isBaseLayer: false, > visibility: true,singleTile:true}); > > When the empty layer and the overlay layer are visible by default when > the application opens, everyting is fine. But if I switch to the > google hybrid layer, I see only one tile at the upper left corner > But, if the applications loads with the hybrid and overlay layer > visible, this problem does not occur. i can switch to the empty layer > without problem. > > I also tried with this, but the result is the same. > var aucunContexte = new OpenLayers.Layer("AucunContexte",{isBaseLayer: > true, maxResolution: 156543.0339, maxExtent: new > OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, > 20037508.34)}); > > Here is the mapOptions > var mapOptions = { > projection: "EPSG:900913", > displayProjection: new OpenLayers.Projection("EPSG:4326"), //Pour > afficher les coord lat long > units: "m", > maxResolution: 156543.0339, > maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, > 20037508.34, 20037508.34), > controls: [],//on les définit plus loin > numZoomLevels: 20 > }; > > What could be the problem? > Thanks > Steve > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
