maplibre-navigation-android icon indicating copy to clipboard operation
maplibre-navigation-android copied to clipboard

Make some navigation classes and methods public for extended usability

Open BackPackerDz opened this issue 7 months ago • 0 comments

This PR updates the access modifiers of ViewRouteListener and NavigationViewRouter, along with three of its methods (findRouteFrom, updateLocation), to public. These changes are essential to allow developers to handle rerouting more directly within their applications. Without these modifications, developers are forced to rely on less desirable solutions such as duplicating internal code or employing fragile workarounds. Making these classes and methods public simplifies the development process and enhances the flexibility of the navigation functionality.

I welcome feedback on these changes and am open to discussing alternative approaches. Please share any suggestions or insights you have.

Several useful classes in the library are internal, limiting their direct usability. I’d appreciate insights into the decision for such accessibility settings to align our development efforts better.

BackPackerDz avatar Jul 03 '24 16:07 BackPackerDz