Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two routes error #19

Open
hardikbhalodi opened this issue Aug 6, 2019 · 2 comments
Open

Two routes error #19

hardikbhalodi opened this issue Aug 6, 2019 · 2 comments

Comments

@hardikbhalodi
Copy link

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.");
}

@amalChandran
Copy link
Owner

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.

@sayedtalha124
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants