-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Upgrade to MapLibre 11.0.0 #110
Conversation
e695301
to
ddc8848
Compare
I see always existing Mapbox names on resources that could changed. I will updates this near time. |
In favor of maplibre/maplibre-native#2505 I noticed that the layer IDs of the native project always on |
b8bba6c
to
1b325d2
Compare
I tried to rename all Mapbox names to MapLibre. But while we use at the moment Mapbox requests as our default API, it was not very easy to differentiate the components and which names should renamed and which not. Feel free to have an own look, and give some hints to missing parts. Alternative we can create a follow up PR when we detect missing things. From my side this PR is ready to merge. A test usage has worked for me. To force Jitpack to rebuild I create a tag. I added the library with
|
@boldtrn Can you review this? |
@nitrag this PR is still on my review list. Please note, this PR is huge, while a lot of the changes are simple renames, I still have to take a look. If you like to help with the review, we are grateful for any feedback you have, so please feel free to also review the code and let us know if you spot an issue. Feel free to run the sample code an integrate this in your project so we catch possible issues early on. |
@Fabi755 Thanks for taking the time to do this! While implementing your changes into our Flitsmeister app we noticed two things in
After editing this, and changing all MapBox references to MapLibre, |
Can this PR be merged, or are additional changes needed? |
There are still issues, that I need to fix. I'm currently on holiday until august. I will continue working after this. |
I'll be happy to test this when it's finished. |
Oh dear, there are merge conflicts :/ |
The origin(Point, Double, Double) function on line 239 still uses com.mapbox.geojson.Point instead of org.maplibre.geojson.Point. I see you did change it in the other variant, so the toMapboxPoint() needs to be moved to this one. Fixed!
In the example project it works fine. Do you use the Feel free to test the recent changes again and let me know if something is broken. But I noticed some issue with the location puck (since v11.0.1). I'm not sure yet, whats causing this. |
@Fabi755 Thanks, everything seems to work so far! The last time I tested it everything worked on emulator as well, but now the map seems to crash on emulator. I guess I should report that to the native team. |
Crashes on the emulator are known issues at the native project. There already exist issues on native project:
But sure, that is more an issue of the native project, and not part of the navigation 👍 Seems like it's fixed in 1.5.x: |
Thanks, I'm subscribing to that issue. Hopefully it can be fixed 🤞 |
As it's a big refacto, I think it should be merged before other PRs come into conflict with it. |
When other things come up, and a conflict will created, it's easy to solve, while this changes are only renamings :-) But this will merged soon. Review is already in progress. |
LICENSE
Outdated
@@ -1,8 +1,6 @@ | |||
The MIT License (MIT) | |||
|
|||
Copyright (c) 2021 Maplibre | |||
Copyright (c) 2019 Flitsmeister | |||
Copyright (c) 2018 Mapbox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove previous copyrights? I think we have to keep them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have an legal expert at MapLibre?
But yes, I can roll this also back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe @ramyaragupathy knows more? My understanding is that we can't just remove copyrights.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rolled back this for now. We can change this later if necessary.
options.windowTitle("Mapbox Android Navigation UI SDK $VERSION_NAME Reference") | ||
options.docTitle("Mapbox Android Navigation UI SDK $VERSION_NAME") | ||
options.header("Mapbox Android Navigation UI SDK $VERSION_NAME Reference") | ||
options.bottom("© 2019 Mapbox. All rights reserved.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this copyright notice also be deleted/kept?
( I am not a lawyer )
It might be silly to delay this PR, just because of some copyright notices;
So maybe it's better to check that in a separate issue/PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also not a lawyer, but the copyright seems to be wrong anyway, as the repo is under MIT, so I think it should be alright to do this, but maybe link to the license file or something like that (if it would be hosted on some webpage, which I don't think it is right now?). Either way, we are currently testing and reviewing this PR on our end, so it's not blocked due to that, sorry if there isn't a lot of feedback right now I hope we have some by the end of next week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That said, please feel free to also review the code @frankkienl - my plan would be to merge this ASAP (which is more like 1-2 weeks or so).
options.windowTitle("Mapbox Android Navigation SDK $VERSION_NAME Reference") | ||
options.docTitle("Mapbox Android Navigation SDK $VERSION_NAME") | ||
options.header("Mapbox Android Navigation SDK $VERSION_NAME Reference") | ||
options.bottom("© 2017 Mapbox. All rights reserved.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here ;-) (see comment above)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi folks, inspired by @boldtrn, I've spent some time looking through the changes and integrating this PR into the Kurviger app.
Apart from a blinking puck icon (presumably fixed in maplibre/maplibre-native#2879), things are looking good on our side 👍 Thanks!
...rc/main/java/org/maplibre/navigation/android/navigation/ui/v5/MapConnectivityController.java
Outdated
Show resolved
Hide resolved
Ideally the puck flickering will be fixed with the next release of Maplibre-Native maplibre/maplibre-native#2992 |
The flickering issue has been resolved and this PR should be almost ready to be merged, if anyone finds an issue, please report this very soon or this PR will be merged (we can always include fixes later as well). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'd vote to merge this whenever you are ready @Fabi755 👍
Upgrade MapLibre to major version
11.x.x
.Closes #104
Following things have done for this:
a. Update
maplibre-native
to version11.0.0
b. Update
maplibre-java
modules to version6.0.1
c. Rename affected imports
d. Replace MapLibre hosted
mapbox-sdk-services
(5.9.0
) by Mapbox hostedmapbox-sdk-services
(5.8.0
) to solve package conflicts. This step was required because the project is currently using some classes from the services module. But the module was removed from the MapLibre project, and therefore not upgraded to the new package name.Things we should thinking about, before release the new major version:
v5
from path.core
&ui
.Please note that the GL drawing is crashing (on emulator ?!) when roating the map. See: maplibre/maplibre-native#2371.