[OpenLayers-Dev] addOptions and redraw

Eric Lemoine eric.lemoine at camptocamp.com
Wed Apr 11 12:37:45 EDT 2012


On Wed, Apr 11, 2012 at 4:26 PM, Eric Lemoine
<eric.lemoine at camptocamp.com> wrote:
> On Wed, Apr 11, 2012 at 3:48 PM, Bart van den Eijnden
> <bartvde at opengeo.org> 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 : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Dev mailing list