syagbasan / android-maps-extensions

Automatically exported from code.google.com/p/android-maps-extensions
0 stars 1 forks source link

I want to draw arc like line on android map v2 #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello 

I am very thankful that you are extending the android map v2 as its really 
needed. I am having the requirement of drawing the arc like line between two 
points. You think you can help me with that. 

Thanks in advance

Original issue reported on code.google.com by tree.h...@gmail.com on 3 Apr 2013 at 10:02

GoogleCodeExporter commented 8 years ago
If PolylineOptions.geodesic 
(https://developers.google.com/maps/documentation/android/shapes#geodesic_segmen
ts) is not what you mean, I suggest posting feature request to the Maps API v2 
library issue tracker here:
http://code.google.com/p/gmaps-api-issues/issues/list?can=2&q=apitype%3DAndroid2

This library is focusing on providing commonly used algorithms and simplifying 
interaction and cannot add graphical enhancements.

Original comment by maciek.g...@gmail.com on 3 Apr 2013 at 10:39

GoogleCodeExporter commented 8 years ago
Well I know this already the reason i can't use this is one is because i have 
two points  very near to each other around 10 meter original distance the 
geodesic work only for long distance like from australia to india then it show 
the flight route like line. 

I am trying to add the arc like line for small region. take an example of if i 
am playing cricket i want to show on map of all my shots on the ground, like an 
arc. 

I hope you have some good answer to achieve this.

Original comment by tree.h...@gmail.com on 3 Apr 2013 at 10:44

GoogleCodeExporter commented 8 years ago
You may want to calculate few LatLngs between these two points and make one 
Polyline out of all points, so it looks curved.

Original comment by maciek.g...@gmail.com on 3 Apr 2013 at 10:48

GoogleCodeExporter commented 8 years ago
Yeah thats whats my last preference to do, as in previous map version i can 
draw the custom shape using the custom overlay like canvas. 

But if there is no other alternative i will have to do that only. So i will 
look for a good algorithm for that or if you know any can share me that. In 
that case i am looking for a function in which i will pass two latlng 
parameters and it will return the array of whole latlng points  to draw the 
lines with proper curve look. The curve will be like half the height of the 
distance.

Original comment by tree.h...@gmail.com on 3 Apr 2013 at 10:52

GoogleCodeExporter commented 8 years ago
Try posting question on http://stackoverflow.com/

Original comment by maciek.g...@gmail.com on 3 Apr 2013 at 10:59