Changeset 4999
- Timestamp:
- 10/17/07 21:20:04 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/elam/openlayers/lib/OpenLayers/Layer/GeoRSSvector.js
r4961 r4999 26 26 format: null, 27 27 28 /** store url of text file29 * @type str */30 28 url:null, 31 29 … … 39 37 * Options renderer {Object}: Typically SvgRenderer or VmlRenderer. 40 38 */ 41 initialize: function(name, url ) {39 initialize: function(name, url, options) { 42 40 43 41 var newArguments = new Array() 44 newArguments.push(name );42 newArguments.push(name,options); 45 43 OpenLayers.Layer.Vector.prototype.initialize.apply(this, newArguments); 46 44 this.url = url; 47 48 49 //OpenLayers.loadURL(url, null, this, this.parseData);50 51 45 }, 52 46 … … 65 59 if(this.visibility && !this.loaded){ 66 60 // Load the GML 67 this.load GML();61 this.loadXML(); 68 62 } 69 63 }, … … 83 77 // See http://trac.openlayers.org/ticket/404 84 78 if(this.visibility && !this.loaded){ 85 this.loadGML(); 79 this.events.triggerEvent("loadstart"); 80 this.loadXML(); 86 81 } 87 82 }, 88 83 89 load GML: function() {84 loadXML: function() { 90 85 if (!this.loaded) { 91 86 var results = OpenLayers.loadURL(this.url, null, this, this.requestSuccess, this.requestFailure); … … 123 118 */ 124 119 requestFailure: function(request) { 125 alert("Error in loading GML file "+this.url); 120 alert("Error in loading GML file "+this.url); 121 this.events.triggerEvent("loadend"); 126 122 }, 127 123
