updated polygon styling to use a function to set fillColor