Search code examples
javascriptcesiumjsczml

CZML polygon without color or 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.


Solution

  • Thank you very much @emackey for your descriptive answer. Your answer is useful for that I want to increase the width of polygon outline.

    But the easier way to achieve hollow polygon (polygon with only outline) is here. Setting fill property of CZML polygon to false worked for me.