adjusted gmaps segment styling algorithms