CZML polygon without material

Is it possible to draw a CZML polygon with only polygon outline and no material to cover the sides of polygon? This is required as my requirement is to enable clicking on an object completely immersed into the polygon i.e. no side of inner polygon overlaps the side of outer polygon. So I just want to draw a polygon outline to make the inner polygon listen click event.

Hello,

Yes, you can use the fill: false property to only draw the outline. Here is an example:

{

“polygon” : {

“positions” : {

“cartographicDegrees” : [

-108.0, 25.0, 100000,

-100.0, 25.0, 100000,

-100.0, 30.0, 100000,

-108.0, 30.0, 300000

]

},

“fill”: false,

“height” : 0,

“outline” : true,

“outlineColor” : {

“rgba” : [0, 0, 0, 255]

}

}

}

``

Best,

Hannah