Open usmanzaheer1995 opened 6 years ago
I also need to solve the problem~! webgl earth has little api interface!
Very old, I know, but construct the polygon with a reference, then use the variable holding the polygon and call
var polygon = WE.polygon([.... coords ...], { }).addTo(earth);
polygon.destroy();
polygon = null;
You can then re-reference the polygon variable to create a new one.
How can i remove a polygon from map? polygon.removeFrom(map) does not work as it does for removing a marker.