Use Infinity instead of Number.POSITIVE_INFINITY

This commit is contained in:
Tom Payne
2013-03-22 11:34:44 +01:00
parent 9e1b37ada3
commit 8b5367c947
3 changed files with 4 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ ol.parser.ogc.WMSCapabilities_v1_1 = function() {
if (min !== 0) {
obj['maxScale'] = parseFloat((min / rad2) * ipm * dpi);
}
if (max != Number.POSITIVE_INFINITY) {
if (max != Infinity) {
obj['minScale'] = parseFloat((max / rad2) * ipm * dpi);
}
},