Drawing lines between to points on a map? - android

I have two markers on a map. The code is found on The developer site here. What I want to do is draw a line in between the two points. I have no idea what is to be done here. If I could get an example or tutorial site on this that would be great
-thanks

This question looks like it answers your question Drawing line between two points since the markers are set using geopoints I assume this will work for you

Related

Reducing Android Map shape overlapping draws

Forgive me if this is a duplicate, but the questions I find don't have an answer (I hope to simplify those questions).
Given two circles on a GoogleMap, how do I tell if they overlap and "smash" them into one image?
I have a lot of data points (~14K) and that many circles are not rendering well. Can they also be drawn just once, instead of 14k draw calls?
There is Google Maps API Clustering Utility. That should handle clustering your items for you.
And there is a SOF Question addressing the same issue and solutions as well.

Google Maps on Android. How to draw a line along the border of cities, states etc?

Now I am customize the Google Map, I wanna distinguish each city by line and fill inside with colors.
How can I do that? Drawing a polyline by hand is only a solution ??
May this can solve your problem.
https://developers.google.com/maps/documentation/android/shapes

Drawing on map by finger and get latlong

my Question is how to draw any shape on map by finger and get latitude and longitude in Google map please help me its very difficult to me some answer i have found on stack overflow and another websites but that's not working
Thanks in Advance:-
I have done something very similar with HERE maps, full codes for it can be found from the AreaSelector example at github
The idea is really simple. You just have two draggable markers, one for moving the circle position in the map, and one for changing the radius, and when each one of them is moved, you just change the circle accordingly. So that idea could be a nice starting point for your custom circle drawer as well.

How to draw lines on Android to show the path from one node to another?

I need to create an application on android to show the paths from starting point to destinations but i have no idea about implementing a map image and pointing the destinations on it and also draw lines on an image to show the paths , can anyone give some examples about it and make some link suggestions ?
Check this :
Draw a line in Android and Draw a line in Android
Hope this helps.
Sounds like you are looking for Google Maps V2 with Polylines to draw your paths... Google Maps Android

Google Maps - MapView - draw a nice flight route between 2 points

I wonder,
how can I draw a nice flight route between 2 points on a google map's
MapView?
look at this:
http://maps.forum.nu/gm_flight_path.html
this is exactly what I need.
thanks!
Look at my reply to question
How to draw a path on a map using kml file?
and there especially into the RouteOverlay class / draw method.
Since you only want to draw a simple straight line, you probably won't need the rest of the complexity there.

Categories

Resources