From 1dd852ef098f4da69079092d0f7b6e6843072026 Mon Sep 17 00:00:00 2001 From: bartvde Date: Thu, 18 Mar 2010 13:19:42 +0000 Subject: [PATCH] Layer.WFS missing OpenLayers.Util.upperCaseObject(params), p=pdziemiela, r=elemoine,me (closes #2362) git-svn-id: http://svn.openlayers.org/trunk/openlayers@10109 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WFS.js | 3 +++ tests/Layer/WFS.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index b30ba55efb..1f029ab8b2 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -126,6 +126,9 @@ OpenLayers.Layer.WFS = OpenLayers.Class( !OpenLayers.Feature.Vector) { this.vectorMode = false; } + + // Uppercase params + params = OpenLayers.Util.upperCaseObject(params); // Turn off error reporting, browsers like Safari may work // depending on the setup, and we don't want an unneccesary alert. diff --git a/tests/Layer/WFS.html b/tests/Layer/WFS.html index 461844892d..a74b782652 100644 --- a/tests/Layer/WFS.html +++ b/tests/Layer/WFS.html @@ -134,7 +134,7 @@ map.setCenter(new OpenLayers.LonLat(-100, 60), 3); } catch (Exception) { } - t.eq(layer.tile.url, "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?typename=OWLS&maxfeatures=10&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187.890625,-36.6796875,-12.109375,156.6796875", "Tile URL is set correctly when not encoded"); + t.eq(layer.tile.url, "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?TYPENAME=OWLS&MAXFEATURES=10&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187.890625,-36.6796875,-12.109375,156.6796875", "Tile URL is set correctly when not encoded"); map.destroy(); var map = new OpenLayers.Map('map'); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", @@ -152,7 +152,7 @@ map.setCenter(new OpenLayers.LonLat(-100, 60), 3); } catch (Exception) { } - t.eq(layer.tile.url, "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?typename=OWLS&maxfeatures=10&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187.890625%2C-36.679687%2C-12.109375%2C156.679688", "Tile URL is set correctly when not encoded"); + t.eq(layer.tile.url, "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?TYPENAME=OWLS&MAXFEATURES=10&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187.890625%2C-36.679687%2C-12.109375%2C156.679688", "Tile URL is set correctly when not encoded"); map.destroy(); } function test_projection_srs(t) {