Name: android-tile-provider-for-2gis
Owner: 2GIS
Description: null
Created: 2017-08-31 16:48:58.0
Updated: 2018-04-03 14:48:29.0
Pushed: 2017-09-01 09:42:54.0
Homepage: null
Size: 121
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Get your key for Maps Android API
s://developers.google.com/maps/documentation/android-api/signup
Enter yout key into AndroidManifest.xml
a-data
android:name="com.google.android.geo.API_KEY"
android:value="ENTER_YOUR_KEY" />
Add custom points
addMarker(new MarkerOptions().position(new LatLng(25.263831, 55.288396)).title("FUEL_STATION")).setTag(0);
addMarker(new MarkerOptions().position(new LatLng(25.260066, 55.285606)).title("HOTEL")).setTag(0);
addMarker(new MarkerOptions().position(new LatLng(25.24457, 55.318308)).title("HOSPITAL")).setTag(0);
Processing of a click on a point occurs in onMarkerClick function
ic boolean onMarkerClick(final Marker marker) {
Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show();
return false;