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]&lt;=c){a=d;break}return
a},moveTo:function(a,b,c){null!=a&amp;&amp;!(a instanceof
OpenLayers.LonLat)&amp;&amp;(a=new
OpenLayers.LonLat(a));c||(c={});null!=b&amp;&amp;(b=parseFloat(b),this.fractionalZoom||(b=Math.round(b)));
// The problem :
//if(this.baseLayer.wrapDateLine){var
d=b,b=this.adjustZoom(b);b!==d&amp;&amp;(a=this.getCenter())}
var
d=c.dragging||this.dragging,e=c.forceZoomChange;!this.getCachedCenter()&amp;&amp;
 
// 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.&lt;nabble_img src=&quot;grat.png&quot; border=&quot;0&quot;/>



--
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

Reply via email to