Ticket #1199 (closed bug: fixed)
if scales is set on the map, you cannot use minScale and maxScale on the layer
|Reported by:||bartvde||Owned by:||pgiraud|
The code in initResolutions looks if the map object has a scales array. If this is the case it will take over the scales array. There is currently no way to override this, since passing in a null or empty scales array to the layer won't work.
Since the application of minScale and maxScale only takes place if scales is null, that piece of code will never be applied to the layer.
Chris Schmidt noted on the users list that he thinks this is a bug, but he is unsure on how to fix this.