[OpenLayers-Users] max/minScale Values

Christopher Schmidt crschmidt at metacarta.com
Thu Jun 28 07:36:05 EDT 2007


On Thu, Jun 28, 2007 at 01:32:49PM +0200, Jochen Grefe wrote:
> the layer values are overwritten by the map values for max/minScale on
> initResolution of OpenLayers.Layer (Called by addLayer/Map ->
> setMap/Grid ->setMap/Layer) Since I don't know the desired handling, I
> assume that the layer settings should only be overwritten if they are
> not set. In lib/layer.js that would guide me to:

Erik --

This looks totally valid. Can you enter a ticket and  offer your
feedback on this when you get time?

-- Chris

> 546,547c546,549
> <         this.minScale = this.scales[0];
> <         this.maxScale = this.scales[this.scales.length - 1];
> ---
> >         if (this.minScale == null)
> >          this.minScale = this.scales[0];
> >         if (this.maxScale == null)
> >          this.maxScale = this.scales[this.scales.length - 1];
> 
> Best regards,
> Jochen
> 
> 
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 

-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list