Depending on which radio button (Male or Female) is selected, a different renderer is applied to the layer to create a choropleth map.
The "Create Map" button is working, the renderer is applied, and the proper choropleth appears like it should.
However, the problem is in the "Delete Map" button. I call a function that uses removelayer(ct). It works when I have clicked "Create Map" only once.