2gis/android-SDKs-for-tiles

Name: android-SDKs-for-tiles

Owner: 2GIS

Description: null

Created: 2017-08-25 07:25:19.0

Updated: 2017-11-16 01:38:37.0

Pushed: 2017-12-06 04:32:08.0

Homepage: null

Size: 132

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Android Demo project

The map is automatically centered according to points, but if points are not added, specify the starting position.

ate static String START_GEO = "25.220317,55.232048,13";

Addition points through showMarkers function.

<Marker> markers = new ArrayList<>();
ers.add(new Marker("70000001006275165", 25.263831, 55.288396));
ers.add(new Marker("70000001006186603", 25.260066, 55.285606));
ers.add(new Marker("70000001007008967", 25.24457, 55.318308));
Markers(markers);

Point pictures can be replaced.

leMap/app/src/assets/images/point.svg
leMap/app/src/assets/images/point_active.svg

Processing of a click on a point occurs in touchMarker function.

essing of a click on a point occurs in touchMarker function
ascriptInterface
ic void touchMarker(final String filialIds, final String lat, final String lon, final boolean isActive) {
Toast.makeText(context, "Filial id is "+filialIds,Toast.LENGTH_LONG).show();

You can also add a custom image of another object.

ate String prepareMarkerMessage(List<Marker> markers) {
return getMarkersArray(markers) + "var lat;var lon;setMarkersAndAvatar(markers, 25.248772, 55.36103, 'https://cdn-new.flamp.us/default-avatar-m_100_100.png');";


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.