It is still there because you used maptypecontrol
instead of mapTypeControl
.
JavaScript is a case sensitive language: keywords, function names, variables, identifiers... everything is case sensitive so maptypecontrol
is different from mapTypeControl
. And because mapTypeControl
is not there, default value true
is used.