Changeset 5919
- Timestamp:
- 01/28/08 11:39:05 (1 year ago)
- Files:
-
- trunk/openlayers/examples/wmc.html (added)
- trunk/openlayers/lib/OpenLayers.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Format/WMC (added)
- trunk/openlayers/lib/OpenLayers/Format/WMC.js (added)
- trunk/openlayers/lib/OpenLayers/Format/WMC/v1.js (added)
- trunk/openlayers/lib/OpenLayers/Format/WMC/v1_0_0.js (added)
- trunk/openlayers/lib/OpenLayers/Format/WMC/v1_1_0.js (added)
- trunk/openlayers/lib/OpenLayers/Format/XML.js (modified) (1 diff)
- trunk/openlayers/tests/Format/test_WMC.html (added)
- trunk/openlayers/tests/list-tests.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers.js
r5902 r5919 186 186 "OpenLayers/Format/JSON.js", 187 187 "OpenLayers/Format/GeoJSON.js", 188 "OpenLayers/Format/WMC.js", 189 "OpenLayers/Format/WMC/v1.js", 190 "OpenLayers/Format/WMC/v1_0_0.js", 191 "OpenLayers/Format/WMC/v1_1_0.js", 188 192 "OpenLayers/Layer/WFS.js", 189 193 "OpenLayers/Control/MouseToolbar.js", trunk/openlayers/lib/OpenLayers/Format/XML.js
r5614 r5919 349 349 return found; 350 350 }, 351 352 /** 353 * APIMethod: setAttributeNS 354 * Adds a new attribute or changes the value of an attribute with the given 355 * namespace and name. 356 * 357 * Parameters: 358 * node - {Element} Element node on which to set the attribute. 359 * uri - {String} Namespace URI for the attribute. 360 * name - {String} Qualified name (prefix:localname) for the attribute. 361 * value - {String} Attribute value. 362 */ 363 setAttributeNS: function(node, uri, name, value) { 364 if(node.setAttributeNS) { 365 node.setAttributeNS(uri, name, value); 366 } else { 367 if(this.xmldom) { 368 if(uri) { 369 var attribute = node.ownerDocument.createNode( 370 2, name, uri 371 ); 372 attribute.nodeValue = value; 373 node.setAttributeNode(attribute); 374 } else { 375 node.setAttribute(name, value); 376 } 377 } else { 378 throw "setAttributeNS not implemented"; 379 } 380 } 381 }, 351 382 352 383 CLASS_NAME: "OpenLayers.Format.XML" trunk/openlayers/tests/list-tests.html
r5902 r5919 30 30 <li>Format/test_SLD.html</li> 31 31 <li>Format/test_WKT.html</li> 32 <li>Format/test_WMC.html</li> 32 33 <li>Format/test_XML.html</li> 33 34 <li>test_Icon.html</li>
