From 5273d63f3a64633914e9106861494892049977cf Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 20 Nov 2012 17:01:08 +0100 Subject: [PATCH] Documenting ScaleHint parsing, as suggested by @marcjansen --- lib/OpenLayers/Format/WMSCapabilities/v1_1_1.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/OpenLayers/Format/WMSCapabilities/v1_1_1.js b/lib/OpenLayers/Format/WMSCapabilities/v1_1_1.js index 30eee652f5..286ac8f8ad 100644 --- a/lib/OpenLayers/Format/WMSCapabilities/v1_1_1.js +++ b/lib/OpenLayers/Format/WMSCapabilities/v1_1_1.js @@ -10,6 +10,13 @@ /** * Class: OpenLayers.Format.WMSCapabilities/v1_1_1 * Read WMS Capabilities version 1.1.1. + * + * Note on parsing: If the 'min' attribute is set to "0", no + * maxScale will be set on the layer object. If the 'max' attribute is set to + * "Infinity", no minScale will be set. This makes it easy to create proper + * {} configurations directly from the layer object + * literals returned by this format, because no minScale/maxScale modifications + * need to be made. * * Inherits from: * -