Hello list,

 

I got it the solution. Just call to map.setCenter to the same center and the 
same zoom but dragging and forceZoomChange options true.

 

map.events.register("moveend", map, function(){

                var cntr = map.getCenter();

                var z = map.getZoom();

                map.setCenter(cntr,z,true,true);

};

 

Cheers

 

Antoni Vidal

Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya 
<http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
 
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/> 

 

 

 

De: Vidal, Antoni 
Enviat: martes, 05 de julio de 2011 16:43
Per a: '[email protected]'
Tema: Problem with clip overlay layer

 

Hello,

 

The problem is when clip an overlay, if then pan the map, clip doesn't reinit 
and overlay it's trimmed. This effect not happen by zooming.

 

You can see the problem at http://www.icc.cat/vissir3/index.html?lang=eng 
active the seccond "Compare Ortho-Topo" button, pan map and you got it. Then 
zoom and the problem disappears.

 

Any idea?

 

Thanks in advance.

 

Antoni Vidal

Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya 
<http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
 
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/> 

 

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to