Skip to content

dimitardanailov/googlemapsclustermarkers

Repository files navigation

Google Maps Cluster Markers

Youtube Demo: Android - Cluster Markers

Google Play Services [Google Play]

Documentation:

Generation of SHA1 key

http://stackoverflow.com/questions/19207940/how-to-get-my-android-fingerprint-certifica-in-android-studio

keytool -list -v -keystore  ~/.android/debug.keystore

Android Manifest

In your AndroidManifest.xml, you must add a meta-data tag as a child of the application tag to declare the version of Google Play services you are using.

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

Google Play Services [Google Maps]

Documentation:

Android studio gradle configuration

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v{#versionNumber}'
    compile 'com.google.android.gms:play-services-maps:{#versionNumber}'
}

Android Manifest

In your AndroidManifest.xml, you must add a meta-data tag as a child of the application tag to declare the version of Google Play services you are using.

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
# Get information for your Developer profile
keytool -list -v -keystore  ~/.android/debug.keystore
<!--
    Goolge Maps API Key
    Developer Key : {Key}
-->
<meta-data
    android:name="com.google.android.maps.v2.API_KEY"
    android:value="{Key}" />

You must also request the following permissions to use the noted features:

<!-- Used by the Google Maps API to download map tiles from Google Maps servers. -->
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<!-- Allows the Google Maps API to check the connection status in order to determine whether data can be downloaded. -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Allows the Google Maps API to cache map tile data in the device's external storage area. -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Allows the Google Maps API to use WiFi or mobile cell data (or both) to determine the device's location. -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- Allows the Google Maps API to use the Global Positioning System (GPS) to determine the device's location to within a very small area. -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

Specify requirement for OpenGL ES version 2

The Google Maps Android API uses OpenGL ES version 2 to render the map.
If OpenGL ES version 2 is not installed, your map will not appear.
We recommend that you add the following <uses-feature> element as a child of the <manifest> element in AndroidManifest.xml:
<uses-feature
    android:glEsVersion="0x00020000"
    android:required="true" />

Google Maps Android API utility library

Link: http://googlemaps.github.io/android-maps-utils/

Github: https://github.com/googlemaps/android-maps-utils

dependencies {
    compile 'com.google.maps.android:android-maps-utils:{#versionNumber}'
}

Google Maps Cluster Markers

Documentation: https://developers.google.com/maps/documentation/android/utility/marker-clustering

MacOSX Emulators

Issue:

HAX is not working and emulator runs in emulation mode

Fix:

# Post http://stackoverflow.com/questions/21031903/how-to-fix-hax-is-not-working-and-emulator-runs-in-emulation-mode
brew install caskroom/cask/brew-cask && brew update
brew cask install intel-haxm

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages