- Forum posts: 1
Sep 29, 2014, 2:09:06 AM via Website
Sep 29, 2014 2:09:06 AM via Website
I'm trying to make a 3 locations markers on the google map (maybe more) but the problem is it shows only the first thing that I put (Place 1) .. how can I make the button shows me the 3 markers?
zero.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
String DESTINATION_LOCATION1 = "Place 1";
String latit1 = "40.054958";
String longit1 = "18.420317";
String DESTINATION_LOCATION2 = "Place 2";
String latit2 = "39.735692";
String longit2 = "19.689583";
String DESTINATION_LOCATION3 = "Place 3";
String latit3 = "39.567350";
String longit3 = "19.854964";
Intent intent1 = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("geo:<" + latit1 + ">,<" + longit1 + ">?q=<"
+ latit1 + ">,<" + longit1 + ">("
+ DESTINATION_LOCATION1 + ")"));
startActivity(intent1);
}
});
It gives a warning under DESTINATION_LOCATION2, latit2, longit2, DESTINATION_LOCATION3, latit3 and longit3 p.s. no GPS
— modified on Sep 29, 2014, 2:10:02 AM
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.