code to add markers to map using android google maps v2

后端 未结 3 1065
逝去的感伤
逝去的感伤 2020-12-03 08:12

I have lat&long values from database.how to display markers based on lat &long values using android google map api v2.In original android google maps,we display mark

3条回答
  •  醉话见心
    2020-12-03 08:32

    You have to use the method GoogleMap.addMarker(MarkerOptions); I've explained this in a tutorial on my blog: http://bon-app-etit.blogspot.be/2012/12/add-informationobject-to-marker-in.html

    On this blog, you'll find some more posts concerning the new Maps API:

    • Move the map to current or some location
    • Create the custom InfoWindow
    • Associate geodata or objects to a marker

提交回复
热议问题