Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Modifying marker background color dyanmically

$
0
0

Hi Patrick,

       Thanks for the response but I think you may have understood me. I certainly can setup the background color via css but how would I be able to do so dynamically? I'm reading of a JSON that contains an array of items. Each of this items represent a marker with different combination of tri-colors. As such, I presume I would have to do update the background color via script? I certainly do not intend to create a css for each combination of tri-color background.

For example, e.marker.element[0].style.backgroundColor controls the 'background' property of the css class. Which other properties can be exposed from e.marker.element[0].style that would allow me to modify the color gradient of the css class? Thanks.

Best Regards,

CH


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>