[OpenLayers-Commits] r2371 - sandbox/vector/examples

commits at openlayers.org commits at openlayers.org
Mon Mar 5 22:04:40 EST 2007


Author: crschmidt
Date: 2007-03-05 22:04:40 -0500 (Mon, 05 Mar 2007)
New Revision: 2371

Added:
   sandbox/vector/examples/supports-vector.html
Log:
This page can be used to test whether a particular browser has SVG support
needed for SVG vector layers. If the boxes stay red, no vector support
will be available.


Added: sandbox/vector/examples/supports-vector.html
===================================================================
--- sandbox/vector/examples/supports-vector.html	                        (rev 0)
+++ sandbox/vector/examples/supports-vector.html	2007-03-06 03:04:40 UTC (rev 2371)
@@ -0,0 +1,22 @@
+<html>
+<head>
+<script>
+function set() {
+    if (document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#SVG", "1.1") ) {
+        document.getElementById("svg11").style.background="green";
+    }    
+    if (document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#SVGDOM", "1.1") ) {
+        document.getElementById("svgdom").style.background="green";
+    }    
+}
+</script>
+</head>
+<body onload="set()">
+
+Vector Support:
+<br />
+Supports SVG 1.1: <div id="svg11" style="width:100px;height:100px;background-color:red"></div>
+<br />
+Supports SVG DOM: <div id="svgdom" style="width:100px;height:100px;background-color:red"></div>
+</body>
+</html>



More information about the Commits mailing list