Hi, I changed the actual version of OpenLayers (2.12)'s code to be able to visualize the entire world when the wrapDateLine option is set (if not, it was impossible to zoom out and to visualize the entire world): This is what I changed:
adjustZoom:function(a){var b= this.baseLayer.resolutions,c=this.getMaxExtent().getWidth()/this.size.w;if(this.getResolutionForZoom(a)>c)for(var d=a|0,e=b.length;d<e;++d)if(b[d]<=c){a=d;break}return a},moveTo:function(a,b,c){null!=a&&!(a instanceof OpenLayers.LonLat)&&(a=new OpenLayers.LonLat(a));c||(c={});null!=b&&(b=parseFloat(b),this.fractionalZoom||(b=Math.round(b))); // The problem : //if(this.baseLayer.wrapDateLine){var d=b,b=this.adjustZoom(b);b!==d&&(a=this.getCenter())} var d=c.dragging||this.dragging,e=c.forceZoomChange;!this.getCachedCenter()&& // etc .... It works but if I want to place on top of graticule, these graticules are not draw correctly (see image). What's wrong? Thanks a lot, Pascal.<nabble_img src="grat.png" border="0"/> -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Graticule-and-wrapDateLine-option-tp5050378.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users