Hi All,
I have a problem with the OpenLayers.Layer.VirtualEarth OL class.
This is my code:
...
var opts = {
projection: new OpenLayers.Projection('EPSG:900913'),
units: "m",
maxResolution: 156543.03390625 / 4,
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
20037508.34, 20037508.34)
};
map = new OpenLayers.Map('map', opts);
map.addControl(new OpenLayers.Control.LayerSwitcher());
var gphy = new OpenLayers.Layer.Google(
"Google Physical",
{
type: G_PHYSICAL_MAP,
sphericalMercator: true
}
);
var shaded = new OpenLayers.Layer.VirtualEarth(
"Bing",
{
type: VEMapStyle.Shaded,
sphericalMercator: true
}
);
var overlay= new OpenLayers.Layer.WMS(
"overlay",
"http://localhost:8080/geoserver/wms?",
{
layers: "overlay",
format: "image/gif",
transparent: true
}
);
map.addLayers([gphy, shaded, overlay]);
map.setCenter(new OpenLayers.LonLat(10, 38).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 3);
...
The 'overlay' layer is EPSG:4326. When I try to zoom out or I switch between
Google and Bing,
in some cases the overlay layer is no longer in his position. I can't pan
the base layer but only the overlay.
Can someone explain why?
Best Regards,
Tobia Di Pisa
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users