Thanks Enoch.
I now check for the property tileSize which is required for map types.
(Previously I looked for the name property.)
So it seems I can use these two possibilities
var mts = map.mapTypes;
for (var prop in mts) {
if (mts[prop].tileSize) ...
and
for (var prop in mts) {
if (mts[prop].hasOwnProperty("tileSize")) ...
On Nov 25, 11:22 am, "Enoch Lau (Google Employee)"