Lecture 27: Android Google Maps API with Example

Опубликовано: 13 Октябрь 2020
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн Lecture 27: Android Google Maps API with Example длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь C language programming [English + Marathi] 13 Октябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 57 раз и оно понравилось 2 зрителям. Приятного просмотра!