Lecture 27: Android Google Maps API with Example

Published: 13 October 2020
on channel: C language programming [English + Marathi]
57
2

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


On this page of the site you can watch the video online Lecture 27: Android Google Maps API with Example with a duration of hours minute second in good quality, which was uploaded by the user C language programming [English + Marathi] 13 October 2020, share the link with friends and acquaintances, this video has already been watched 57 times on youtube and it was liked by 2 viewers. Enjoy your viewing!