[OpenLayers-Dev] Commercial Layer Visibility
Eric Lemoine
eric.c2c at gmail.com
Fri Mar 21 12:00:57 EDT 2008
On Fri, Mar 21, 2008 at 4:53 PM, Christopher Schmidt
<crschmidt at metacarta.com> wrote:
> A recent change broke the commercial layer display: If a layer ever
> was/went invisible, it would not be able to be turned back on. This is
> because the calculateInRange function for FixedZoomLevel subclasses
> always returns false, because min/max resolution are not set.
>
> I believe that there are two options:
> * Subclass calculateInRange on FixedZoomLevels
> * Generate min/max resolution on fixedzoomlevel layers in
> initResolutions
>
> I've attached a patch to #1457 to do the latter.
>
> If anyone could glance at that, and offer an opinion, that would be
> great. If anyone is having problems with their commercial layers
> disappearing, and wants to test it to make sure it works again now, that
> would also be great.
I would favor option #2 (your current patch).
Thanks,
--
Eric
More information about the Dev
mailing list