trail-android icon indicating copy to clipboard operation
trail-android copied to clipboard

Two routes error

Open hardikbhalodi opened this issue 5 years ago • 2 comments

When only two routes lib throwing exception, seems wrong condition. (builder.latLngs.size() <= 2)

else if (builder.latLngs == null || builder.latLngs.isEmpty() || builder.latLngs.size() <= 2) { throw new NullPointerException("LatLngs cannot be null or then count less than 2."); }

hardikbhalodi avatar Aug 06 '19 13:08 hardikbhalodi

Yes, agreed.

This issue has been fixed in the development branch. There is a new approach that is being tried out for mapping latlng values to pixels based on google map's zoom level. Once that is done the development branch will be merged to master. Sorry but, I don't have an eta on this. Would accept a pull request if you could make the changes. Thank you.

amalChandran avatar Aug 07 '19 07:08 amalChandran

Yes, agreed.

This issue has been fixed in the development branch. There is a new approach that is being tried out for mapping latlng values to pixels based on google map's zoom level. Once that is done the development branch will be merged to master. Sorry but, I don't have an eta on this. Would accept a pull request if you could make the changes. Thank you.

Hello there, I have the same issue

sayedtalha124 avatar Oct 19 '20 10:10 sayedtalha124