Change scene when landscape is selected

Can anyone tell me if it’s possible to change scene or image when i’m rotating my mobile to landscape. I’m making myself an golf gps app. When the mobile is in portrait mode i’m seeing an overview of the hole golfhole. Then i want to show the green only if i’m turning the mobile to landscape mode, when i’m turning the mobile back to portrait mode then i want to show the overview of the golfhole again. Is that possible and can you guys give me some directions ?

You can detect an orientation change and then use composer.* to change scenes or load an overlay as needed.

That is one of many possible solutions, but they all rely on detecting orientation changes:

https://docs.coronalabs.com/api/event/orientation/index.html

attaching_files.jpg

https://raw.githubusercontent.com/roaminggamer/RG_FreeStuff/master/ForumsImages/2018/attaching_files.jpg

Ok. I found this on youtube https://www.youtube.com/watch?v=RKJs9kCxz48 i got some directions now. Thanks. 

You can detect an orientation change and then use composer.* to change scenes or load an overlay as needed.

That is one of many possible solutions, but they all rely on detecting orientation changes:

https://docs.coronalabs.com/api/event/orientation/index.html

attaching_files.jpg

https://raw.githubusercontent.com/roaminggamer/RG_FreeStuff/master/ForumsImages/2018/attaching_files.jpg

Ok. I found this on youtube https://www.youtube.com/watch?v=RKJs9kCxz48 i got some directions now. Thanks.