2 comments

  1. I tried to run the code and got this errors

    2012: Layer error: Image.visualize: Color is not a valid CSS 3.0 color (‘FF0000’ or ‘red’ for red). Found: ‘000000,700000,808080,FFFF00,ffffff,ffffff,ffffff’.

    2013: Layer error: Image.visualize: Color is not a valid CSS 3.0 color (‘FF0000’ or ‘red’ for red). Found: ‘000000,700000,808080,FFFF00,ffffff,ffffff,ffffff’.

    2015: Layer error: Image.visualize: Color is not a valid CSS 3.0 color (‘FF0000’ or ‘red’ for red). Found: ‘000000,700000,808080,FFFF00,ffffff,ffffff,ffffff’.

    2014: Layer error: Image.visualize: Color is not a valid CSS 3.0 color (‘FF0000’ or ‘red’ for red). Found: ‘000000,700000,808080,FFFF00,ffffff,ffffff,ffffff’.

    2016: Layer error: Image.visualize: Color is not a valid CSS 3.0 color (‘FF0000’ or ‘red’ for red). Found: ‘000000,700000,808080,FFFF00,ffffff,ffffff,ffffff’.

    how can I get this solved to be able to run the code

    1. Hi

      I think you need little change in some stuff, Use that ————->

      // vizualization parameters
      var viz = {min:0, max:1, palette:[‘Black’, ‘RED’, ‘gray’ , ‘Yellow ‘, ‘White’]};

      It’s working in my case

      Best of luck

Leave a Reply