Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
How to implement Gradient color on individual states for USA map
posted

I used Infragistics Silverlight Map control and I put Linear Gradient Color Brush on individual States in the USA map.  How do I do the same with the new igMap

in jQuery? Sample code please of how to put Gradient color on sections of the MAP using jQuery.  I am using shape files .shp.  Thanks so much for all your continued help!

 

 

 

  • 245
    Suggested Answer
    posted

    Thanks for all the replies!  I finally figured out how to fix my problem on jQuery igMap ... I used HTML5 Canvas to create gradient color and assigned the resulting gradient to colString instead of say 'red' or 'blue' value ...

     

     

  • 30692
    Offline posted

    However, if you aren;t looking for a gradient color, but just want t different shade for each state, please check out our map samples, you can use the shapeStyleSelector option to get a different color shade for each state. But it wont let you specify a gradient between two colors for one shape. If the latter is what you want, what is your use case for the gradient?

  • 1775
    Suggested Answer
    posted

    Hi, trifee

    Unfortunately, gradient fills are not supported yet. For details, look at the following discussion: Patterned shape fills

    Cheers, Lazar