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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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');";