[OpenLayers-Users] problem with empty baselayer and google
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Mon Feb 8 10:01:28 EST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100208/7acbc882/attachment.html
More information about the Users
mailing list