Add API method for changing an icon's marker image.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4784 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -106,6 +106,18 @@ OpenLayers.Icon = OpenLayers.Class({
|
||||
}
|
||||
this.draw();
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: setUrl
|
||||
*
|
||||
* url - {String}
|
||||
*/
|
||||
setUrl: function(url) {
|
||||
if (url != null) {
|
||||
this.url = url;
|
||||
}
|
||||
this.draw();
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: draw
|
||||
|
||||
Reference in New Issue
Block a user