[OpenLayers-Users] RE: Problem with clip overlay layer
Vidal, Antoni
antoni.vidal at icc.cat
Fri Jul 8 06:21:13 EDT 2011
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: 'openlayers-users at lists.osgeo.org'
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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110708/db8d4b6f/attachment.html
More information about the Users
mailing list