Is there a option to use gradient as fillcolor in geoShapes?

Ask a question
Coin icon

0.1 ETH

I need to use a gradient as fill color in an geoShape on a here map. Is there any option to do this?

if i use something like this:

``... init map etc ...

 var customStyle = {
      strokeColor: 'none',
      fillColor: 'linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,212,255,1) 100%)',
      lineWidth: 10,
      lineCap: 'square',
      lineJoin: 'bevel'

I get only a black object …

please, help :)

Coin iconoffer bounty
add comment

0 Answer

Your Answer