From 3405e978357c2f20d71865110d6508bb0f95613c Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 24 Feb 2008 20:25:27 +0000 Subject: [PATCH] Adding more complete style parsing to the WMC format. The format now has support for named, linked (SLD), and inline (SLD_BODY) styles. r=ahocevar (closes #1313) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6358 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/WMC/v1.js | 73 ++++++++++-- tests/Format/WMC/test_v1.html | 200 ++++++++++++++++++++++++++++++++ tests/list-tests.html | 1 + 3 files changed, 264 insertions(+), 10 deletions(-) create mode 100644 tests/Format/WMC/test_v1.html diff --git a/lib/OpenLayers/Format/WMC/v1.js b/lib/OpenLayers/Format/WMC/v1.js index d9cd419a6c..ab36463cb3 100644 --- a/lib/OpenLayers/Format/WMC/v1.js +++ b/lib/OpenLayers/Format/WMC/v1.js @@ -122,9 +122,7 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, { for(var i=0; i + + + + + + + diff --git a/tests/list-tests.html b/tests/list-tests.html index 8200ffb170..b07056735f 100644 --- a/tests/list-tests.html +++ b/tests/list-tests.html @@ -32,6 +32,7 @@
  • Format/test_WKT.html
  • Format/test_WMC.html
  • Format/WMC/test_v1_1_0.html
  • +
  • Format/WMC/test_v1.html
  • Format/test_XML.html
  • test_Icon.html
  • test_Marker.html