google-maps-markers

How to show multiple markers on MapFragment in Google Map API v2?

二次信任 提交于 2019-11-26 04:19:54
问题 I am using Google Map API v2 in my application to show Maps. I have followed all the steps, that is to be followed to enable Google Map in my application. public class PinLocationOnMapView extends FragmentActivity { private double mLatitude = 0.0, mLongitude = 0.0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); SupportMapFragment fragment = SupportMapFragment.newInstance(); getSupportFragmentManager().beginTransaction() .add(android.R.id

Draw path between two points using Google Maps Android API v2

二次信任 提交于 2019-11-26 01:27:00
问题 Google changed its map API for Android and introduced API V2. The previous codes for drawing path are not working with API V2. I have managed to draw a path with API V2. I had searched a lot for the solution but did not find any answer. So I am sharing its answer. 回答1: First of all we will get source and destination points between which we have to draw route. Then we will pass these attribute to below function. public String makeURL (double sourcelat, double sourcelog, double destlat, double

How to create a custom-shaped bitmap marker with Android map API v2 [duplicate]

自闭症网瘾萝莉.ら 提交于 2019-11-25 23:09:13
问题 This question already has an answer here: How can I create a speech-bubble border for a Google Marker Custom Icon using Picasso? 2 answers I am developing an Android Application where I\'m using Google Map API v2. I need to show the user location on a map with custom markers. Each marker will show the picture of the user from an URL. The image must be downloaded in asynchronous mode from the server. See the attached screenshot for an example. How do I add an image and custom information in