Google have Java wrappers for their maps service. This link has everything you need for the 'flat mode'. https://code.google.com/p/google-maps-java-sdk/

For the 'Globe map' I'm guessing you want...