On Wed, Apr 11, 2012 at 4:26 PM, Eric Lemoine <[email protected]> wrote: > On Wed, Apr 11, 2012 at 3:48 PM, Bart van den Eijnden > <[email protected]> wrote: >> Hey Eric, >> >> right, what I am doing now is calling display in the following way: >> >> layer.display(layer.calculateInRange()); >> >> but it feels a bit weird to do it this way. > > > Yes, that's ugly. We really provide a better way to handle your case.
Another thing you could try is call map.setCenter() (with no argument), this should turn off your out-of-range overlays. Regarding the displacement issue I'm interested to exactly know how to reproduce it. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com _______________________________________________ Dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-dev
