I solved the transparency issue by changing the png image to a gif image.
The sorting problem is in the polygon. The order of the polygon is not according the primitives array. Is it a bug?
The number is the index in the primitives array.
The display order (up to down) should be white, blue, red and green. But it is shown blue, red, white and green.
Is it the case that we cannot use partially transparent color in images? I have a png image with a shadow around the main shape, eg like google map type of pin. If I use this image with a billboard and display it over a polygon, the shadow part literally erases the polygon color behind, see the image attached.
Also depedning on the camera position, the billboard is either above or behind the polygon. Is there an option to tinker with to change this behvior? ie billboard always on top. I tried setting the height but it didn’t do the trick.
This problem is the order of the polygon. After b22 the polygon order is not correct. Try to use lower or raise functions of ComposePrimitive with a polyline, for example - it works fine, but not with polygon.
I solved my problem coming back to b22 version.