Hi,
I'm trying to modify markers' color dynamically based on datasource info. My marker css looks something like the following:
.k-map . k-marker-Myimage{background-color:red}
And in the markerCreated event, I did something like
markerCreated: function(e)
{
e.marker.options.shape = "Myimage";
e.marker.options.shape.css("background-color",e.marker.dataItem.Color);
}
However, the map does not even load at all. Perhaps, I'm doing this wrongly. Would appreciate if you can point me in the right direction. Thanks in advance.
Best Regards,
CH