From 07fd731e7f408293924260cbc54ef64a2363a7ea Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 15 Jun 2009 13:40:35 +0000 Subject: [PATCH] Pullup Changes for 2.8 RC6. * VML support for IE8 (Closes #1910) * Fix for Opera 9.27 support (Closes #2103) * Minor ArcXML change for exact renderer (Closes #2117) * Missing semicolons (Closes #2134) * vector labels in IE7 standards mode (Closes #2135) git-svn-id: http://svn.openlayers.org/branches/openlayers/2.8@9478 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/wfs-protocol.html | 2 +- examples/wmst.html | 2 +- lib/OpenLayers/BaseTypes.js | 2 +- lib/OpenLayers/Format/ArcXML.js | 4 +- lib/OpenLayers/Format/WMSGetFeatureInfo.js | 2 +- lib/OpenLayers/Renderer/VML.js | 64 +++++++------ lib/OpenLayers/Style.js | 2 +- tests/manual/arcims-2117.html | 103 +++++++++++++++++++++ 8 files changed, 145 insertions(+), 36 deletions(-) create mode 100644 tests/manual/arcims-2117.html diff --git a/examples/wfs-protocol.html b/examples/wfs-protocol.html index 978d627fe6..dbfd49f661 100644 --- a/examples/wfs-protocol.html +++ b/examples/wfs-protocol.html @@ -19,7 +19,7 @@ var layer = new OpenLayers.Layer.Vector("WFS", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ - url: "http://publicus.opengeo.org/geoserver/wfs", + url: "http://demo.opengeo.org/geoserver/wfs", featureType: "tasmania_roads", featureNS: "http://www.openplans.org/topp" }) diff --git a/examples/wmst.html b/examples/wmst.html index beab399167..51772fec8d 100644 --- a/examples/wmst.html +++ b/examples/wmst.html @@ -16,7 +16,7 @@ "http://t1.hypercube.telascience.org/cgi-bin/landsat7", {layers: "landsat7"}); - ia_wms = new OpenLayers.Layer.WMS("Nexrad","http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?",{layers:"nexrad-n0r-wmst",transparent:true,format:'image/png',time:"2005-08-29T13:00:00Z"}); + ia_wms = new OpenLayers.Layer.WMS("Nexrad","http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?",{layers:"nexrad-n0r-wmst",transparent:true,format:'image/png',time:"2005-08-29T13:00:00Z"}); jpl_wms.setVisibility(false); diff --git a/lib/OpenLayers/BaseTypes.js b/lib/OpenLayers/BaseTypes.js index 1a12ff5528..615ef1de3e 100644 --- a/lib/OpenLayers/BaseTypes.js +++ b/lib/OpenLayers/BaseTypes.js @@ -162,7 +162,7 @@ OpenLayers.String = { * Used to find tokens in a string. * Examples: ${a}, ${a.b.c}, ${a-b}, ${5} */ - tokenRegEx: /\${([\w.]+?)}/g, + tokenRegEx: /\$\{([\w.]+?)\}/g, /** * Property: OpenLayers.String.numberRegEx diff --git a/lib/OpenLayers/Format/ArcXML.js b/lib/OpenLayers/Format/ArcXML.js index 34643b1750..ac195f8f55 100644 --- a/lib/OpenLayers/Format/ArcXML.js +++ b/lib/OpenLayers/Format/ArcXML.js @@ -557,8 +557,8 @@ OpenLayers.Format.ArcXML = OpenLayers.Class(OpenLayers.Format.XML, { var keys = this.fontStyleKeys; for (var i = 0, len = keys.length; i < len; i++) { var key = keys[i]; - if (symbol[key]) { - selem.setAttribute(key, renderer[key]); + if (exact.symbol[key]) { + selem.setAttribute(key, exact.symbol[key]); } } eelem.appendChild(selem); diff --git a/lib/OpenLayers/Format/WMSGetFeatureInfo.js b/lib/OpenLayers/Format/WMSGetFeatureInfo.js index 8528872523..9d4589f3eb 100644 --- a/lib/OpenLayers/Format/WMSGetFeatureInfo.js +++ b/lib/OpenLayers/Format/WMSGetFeatureInfo.js @@ -228,7 +228,7 @@ OpenLayers.Format.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Format.XML, { var attributes = {}; if (node.nodeType == 1) { var children = node.childNodes; - n = children.length + n = children.length; for (var i = 0; i < n; ++i) { var child = children[i]; if (child.nodeType == 1) { diff --git a/lib/OpenLayers/Renderer/VML.js b/lib/OpenLayers/Renderer/VML.js index b7b240a271..10d305e540 100644 --- a/lib/OpenLayers/Renderer/VML.js +++ b/lib/OpenLayers/Renderer/VML.js @@ -53,8 +53,12 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, { if (!document.namespaces.olv) { document.namespaces.add("olv", this.xmlns); var style = document.createStyleSheet(); - style.addRule('olv\\:*', "behavior: url(#default#VML); " + - "position: absolute; display: inline-block;"); + var shapes = ['shape','rect', 'oval', 'fill', 'stroke', 'imagedata', 'group','textbox']; + for (var i = 0, len = shapes.length; i < len; i++) { + + style.addRule('olv\\:' + shapes[i], "behavior: url(#default#VML); " + + "position: absolute; display: inline-block;"); + } } OpenLayers.Renderer.Elements.prototype.initialize.apply(this, @@ -111,14 +115,14 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, { var org = left + " " + top; - this.root.setAttribute("coordorigin", org); + this.root.coordorigin = org; var roots = [this.root, this.vectorRoot, this.textRoot]; var root; for(var i=0, len=roots.length; i + + ArcIMS Test Ticket #2117 + + + + + + +

ArcIMS Test Ticket #2117

+ +
+
+

+ Testing ticket #2117 +

+ +
+ +
+ This is an example of a bug in the ArcXML format writer. + If you don't see a map, it's broken. +
+ + + + + + +