Android Google Maps API with Example:
By using Google Maps Android API we can integrate google maps in android applications to show the location details on map based on our requirements.
To use google maps in our android applications, we need to install Google Play Services SDK in our Android Studio because google made Google Map API as a part of Google Play Services SDK.
To install Google Play Services, open Android Studio and Go to Tools menu and select SDK Manager, then new window will open in that select SDK Tools tab and Select Google Play Services then click OK.
Once we are done with Google Play Services installation in android studio, now we will see how to integrate google map with our android app.
First choose Google Maps Activity, instead of Empty Activity.
Once the project created, Android Studio will open google_maps_api.xml and MapsActivity.java files in the editor.
Android Google Map Types:
The Google Maps Android API provides a map in different types such as Normal, Hybrid, Satellite, Terrain and None.
1. Normal: Typical road map. Shows roads, some features built by humans, and important natural features like rivers.
2. Hybrid: Satellite photograph data with road maps added.
3. Satellite: Satellite photograph data.
4. Terrian: Topographic data. The map includes colors, contour lines.
5. None: No tiles. The map will be rendered as an empty grid with no tiles loaded.
In android, we can change the type of a map by calling the GoogleMap object’s setMapType() method, by passing the type of constants defined in GoogleMap.
Prof. Amol M. Jagtap
MTech CSE
In questa pagina del sito puoi guardare il video online Lecture 27: Android Google Maps API with Example della durata di ore minuti seconda in buona qualità , che l'utente ha caricato C language programming [English + Marathi] 13 ottobre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 57 volte e gli è piaciuto 2 spettatori. Buona visione!