2gis/android-tile-provider-for-2gis

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Android demo project for tile provider

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;


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.