You need to put back all of the changes in this file except for `Color.fromRandom`.  The KML branch you copied this from was outdated.