Adding wrapDateLine support for XYZ layers. The OSM layer now wraps the date line by default. p=tomh, r=me (Closes #2246)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
pgiraud
2011-04-04 07:20:48 +00:00
parent 035a30021d
commit e140a5d843
3 changed files with 23 additions and 2 deletions

View File

@@ -35,6 +35,9 @@ function init() {
})
]);
var osm = new OpenLayers.Layer.OSM();
osm.wrapDateLine = false;
map = new OpenLayers.Map({
div: 'map',
projection: 'EPSG:900913',
@@ -53,7 +56,7 @@ function init() {
new OpenLayers.Control.ZoomPanel(),
toolbar
],
layers: [new OpenLayers.Layer.OSM(), vector],
layers: [osm, vector],
center: new OpenLayers.LonLat(0, 0),
zoom: 1,
theme: null