I am having trouble removing placemarks. My pickup function picks up the passengers and renders the seating chart correctly, but placemarks from the 3D map are not being removed, thus I can pickup a passenger multiple times. What I am doing in the pickup function is: if the passenger is within range, I update the
shuttle.seats array, render the seating chart again, and then use the following code to remove the placemark:
var features = earth.getFeatures(); features.removeChild(placemark); // i've already made the placemark to be global
but placemarks are unaffected and they stay there. What am I doing wrong?