Question

I'm using Google maps API v2 and I'm trying to figure out how I would allow a marker to be dropped on a SupportMapFragment and set the marked position to lattitude and longtitude variables.I have figured out how to get the path from two hard coded points but not this way.

I have come across this solution which is useful for adding markers How to show multiple markers on MapFragment in Google Map API v2? but not applicable for dropping a marker on the map fragment and translating the coordinates.

Does anyone have any pointers on doing this or where I would start with this implementation?

This is how the interface looks at present:

enter image description here

Was it helpful?

Solution

Assuming you mean, by drop a marker, to add a marker to the map by the users touch, you will find the answer here.

Add Marker on Android Google Map via touch or tap

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top