Closed BenPav closed 3 years ago
@BenPav I think the issue may be that your polygon is reverse wound, so essentially you're filling the entire world with a small square hole where you expect the polygon to be. Geojson expects polygon coordinates to go clockwise iirc. So can you try reversing your coordinates array and see if it fixes it?
That fixed one problem, but I still have a giant spire going from the core of the earth out into the heavens.
@BenPav can you make a simple example on codepen so that it's easier to debug?
@BenPav that is expected. The polygons translate into cone like shapes, rooted at the globe center that are contoured according to the polygon geojson.
If you don't wish to show the cone radial walls, you can switch it off via .polygonSideColor(() => 'rgba(0,0,0,0))
.
@vasturiano thank you so much for your advice about reversing the coordinates order!
I'm trying to produce a single polygon on a map that is slightly raised up with a transparent globe image. I'm getting a large pillar of orange with the entire canvas with the cap color.
This is my code:
And here is my geojson