Challenge: changing MapType



I am doing the challenge to change the map type form hybrid/statellite/standard and I have a found something I don’t understand.

When I use:

the iOS simulator returns an exception.

However when I use:

it works fine. I thought these statements were the same - one using dot notation and one not?

All help greatly appreciated.



realised it should be: