Changeset 5552
- Timestamp:
- 12/21/07 02:28:05 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Renderer/SVG.js (modified) (6 diffs)
- trunk/openlayers/lib/OpenLayers/Renderer/VML.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Renderer/SVG.js
r5471 r5552 62 62 supported: function() { 63 63 var svgFeature = "http://www.w3.org/TR/SVG11/feature#SVG"; 64 var supported = (document.implementation && 65 (document.implementation.hasFeature("org.w3c.svg", "1.0") || 66 document.implementation.hasFeature(svgFeature, "1.1"))); 67 return supported; 64 return (document.implementation && 65 (document.implementation.hasFeature("org.w3c.svg", "1.0") || 66 document.implementation.hasFeature(svgFeature, "1.1"))); 68 67 }, 69 68 … … 95 94 96 95 var resolution = this.getResolution(); 97 98 96 99 97 // If the resolution has changed, start over changing the corner, because … … 103 101 this.top = extent.top / resolution; 104 102 } 105 106 103 107 104 var left = 0; … … 139 136 this.rendererRoot.setAttributeNS(null, "height", this.size.h); 140 137 }, 141 142 143 144 138 145 139 /** … … 291 285 */ 292 286 createRenderRoot: function() { 293 var id = this.container.id + "_svgRoot"; 294 var rendererRoot = this.nodeFactory(id, "svg"); 295 return rendererRoot; 287 return this.nodeFactory(this.container.id + "_svgRoot", "svg"); 296 288 }, 297 289 … … 303 295 */ 304 296 createRoot: function() { 305 var id = this.container.id + "_root"; 306 var root = this.nodeFactory(id, "g"); 307 return root; 297 return this.nodeFactory(this.container.id + "_root", "g"); 308 298 }, 309 299 trunk/openlayers/lib/OpenLayers/Renderer/VML.js
r5488 r5552 362 362 */ 363 363 createRenderRoot: function() { 364 var id = this.container.id + "_vmlRoot"; 365 var rendererRoot = this.nodeFactory(id, "div"); 366 return rendererRoot; 364 return this.nodeFactory(this.container.id + "_vmlRoot", "div"); 367 365 }, 368 366 … … 375 373 */ 376 374 createRoot: function() { 377 var id = this.container.id + "_root"; 378 var root = this.nodeFactory(id, "v:group"); 379 return root; 375 return this.nodeFactory(this.container.id + "_root", "v:group"); 380 376 }, 381 377
