And I think you have a logic issue : *If parameters.showMap is true, set showMap to false* ?
Maybe try this:

```jinja
{% if parameters.showMap is defined and not parameters.showMap %}
    {% set showMap = false %}
{% endif %}
```