My map will have two markers for routing purpose, now how could i automatically zoom out to the center between those two markers? Is there any alternative approach to fitBounds in osmdroid(or is there fitBounds itself!!)? Thanks in advance :) asked 07 Jun '16, 14:14 Arun Gowtham aseerel4c26 ♦ |
There is a solution on Stack Overflow. Basically you have to compute a bounding box by iterating over your markers and calculating min/max lat and lon. Then just call answered 07 Jun '16, 16:58 scai ♦ |