Add patch from penyaskito for #705, along with tests, a new example, and a new
example georss file (grabbed from the new mapufacture, which is pretty). Thanks, penyaskito! git-svn-id: http://svn.openlayers.org/trunk/openlayers@3208 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -23,14 +23,17 @@ OpenLayers.Layer.GeoRSS.prototype =
|
||||
/** @type OpenLayers.Feature */
|
||||
selectedFeature: null,
|
||||
|
||||
/**@type OpenLayers.Icon */
|
||||
icon: null,
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
*
|
||||
* @param {String} name
|
||||
* @param {String} location
|
||||
*/
|
||||
initialize: function(name, location) {
|
||||
OpenLayers.Layer.Markers.prototype.initialize.apply(this, [name]);
|
||||
initialize: function(name, location, options) {
|
||||
OpenLayers.Layer.Markers.prototype.initialize.apply(this, [name, options]);
|
||||
this.location = location;
|
||||
this.features = new Array();
|
||||
OpenLayers.loadURL(location, null, this, this.parseData);
|
||||
@@ -143,7 +146,9 @@ OpenLayers.Layer.GeoRSS.prototype =
|
||||
catch (e) {}
|
||||
}
|
||||
|
||||
data.icon = OpenLayers.Marker.defaultIcon();
|
||||
data.icon = this.icon == null ?
|
||||
OpenLayers.Marker.defaultIcon() :
|
||||
this.icon.clone();
|
||||
data.popupSize = new OpenLayers.Size(250, 120);
|
||||
if ((title != null) && (description != null)) {
|
||||
contentHTML = '<div class="olLayerGeoRSSClose">[x]</div>';
|
||||
|
||||
Reference in New Issue
Block a user