0

I need to add a list of geopoints as markers on top of my custom OSM map in my android device, the below code is a sample for showing up one marker.

GeoPoint startPoint = new GeoPoint(48.13, -1.63);
Marker startMarker = new Marker(map);
startMarker.setPosition(startPoint);
startMarker.setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_BOTTOM);
map.getOverlays().add(startMarker);
UmarZaii
  • 1,355
  • 1
  • 17
  • 26
Himagaran
  • 312
  • 2
  • 14
  • Have you considered using `ArrayList` and storing it in Database using a `Cursor`? –  Aug 31 '17 at 07:20
  • 1
    https://stackoverflow.com/questions/45953792/search-marker-from-edit-text-in-maps-fragment-android/45954165?noredirect=1#comment78881485_45954165 – Gowthaman M Aug 31 '17 at 07:34
  • 1
    @Mandy8055 i tried using an array but only the last index worked, can u send a sample implementation by using arraylist without cursor? – Himagaran Aug 31 '17 at 08:42

0 Answers0