Skip to main content
deleted 19 characters in body; edited tags
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

I would like to display one class within a binary image as "transparent" or "no colour".

I have tried the following:

var NDVIclass2Clipped = NDVIclass2.clip(geometry)
Map.addLayer(NDVIclass2Clipped,{palette:['**transparent**','yellow']},'BareGround 2019');

It does not work though.

Should that be the CSS for no colour?

Many thanks

I would like to display one class within a binary image as "transparent" or "no colour".

I have tried the following:

var NDVIclass2Clipped = NDVIclass2.clip(geometry)
Map.addLayer(NDVIclass2Clipped,{palette:['**transparent**','yellow']},'BareGround 2019');

It does not work though.

Should that be the CSS for no colour?

Many thanks

I would like to display one class within a binary image as "transparent" or "no colour".

I have tried the following:

var NDVIclass2Clipped = NDVIclass2.clip(geometry)
Map.addLayer(NDVIclass2Clipped,{palette:['**transparent**','yellow']},'BareGround 2019');

It does not work though.

Should that be the CSS for no colour?

added 8 characters in body
Source Link
Noel Gorelick
  • 12.3k
  • 11
  • 27

I would like to display one class within a binary image as "transparent" or "no colour".

I have tried the following:

var NDVIclass2Clipped = NDVIclass2.clip(geometry) Map.addLayer(NDVIclass2Clipped,{palette:['transparent','yellow']},'BareGround 2019');

var NDVIclass2Clipped = NDVIclass2.clip(geometry)
Map.addLayer(NDVIclass2Clipped,{palette:['**transparent**','yellow']},'BareGround 2019');

It does not work though.

Should that be the CSS for no colour?

Many thanks

I would like to display one class within a binary image as "transparent" or "no colour".

I have tried the following:

var NDVIclass2Clipped = NDVIclass2.clip(geometry) Map.addLayer(NDVIclass2Clipped,{palette:['transparent','yellow']},'BareGround 2019');

It does not work though.

Should that be the CSS for no colour?

Many thanks

I would like to display one class within a binary image as "transparent" or "no colour".

I have tried the following:

var NDVIclass2Clipped = NDVIclass2.clip(geometry)
Map.addLayer(NDVIclass2Clipped,{palette:['**transparent**','yellow']},'BareGround 2019');

It does not work though.

Should that be the CSS for no colour?

Many thanks

Source Link

Setting the colour of one class to display with "No Colour" Google Earth Engine

I would like to display one class within a binary image as "transparent" or "no colour".

I have tried the following:

var NDVIclass2Clipped = NDVIclass2.clip(geometry) Map.addLayer(NDVIclass2Clipped,{palette:['transparent','yellow']},'BareGround 2019');

It does not work though.

Should that be the CSS for no colour?

Many thanks