[OpenLayers-Dev] Commercial Layer Visibility

Christopher Schmidt crschmidt at metacarta.com
Fri Mar 21 11:53:18 EDT 2008


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.

Thanks,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list