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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user