[OpenLayers-Users] Update Markers
Paul Smith
paulsmith at pobox.com
Fri Nov 2 19:02:39 EDT 2007
On 11/2/07, Christopher Schmidt <crschmidt at metacarta.com> wrote:
> Set the 'url' property on the icon as well. (In trunk, use the setUrl
> function instead.)
That worked, thanks. FWIW, here's a helper function I wrote for this:
OpenLayers.Marker.prototype.setIcon = function(icon) {
this.icon.imageDiv.firstChild.src = this.icon.url = icon.url;
}
Cheers,
-Paul
--
Paul Smith
http://www.pauladamsmith.com/
More information about the Users
mailing list