-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
add methods getTiles and setTiles to mimick maplibre-gl-js interface #149
Conversation
We use this patch in production for over a year now. I just finally got around to update to latest maplibre-native opengl-2 branch and it still works as expected. Moreover I can no longer reproduce the race and I doubt it was a problem with this patch anyway. I no longer thinks we should block this on an implementation of setUrl. That is a separate issue and a bit more complex, so I'd rather just get this in for now. From my reading of the code the call to So this ready for reviewing from my point of view. |
This comment has been minimized.
This comment has been minimized.
Nice @xabbu42! Please remove the draft status in that case |
This comment has been minimized.
This comment has been minimized.
I'll have to look in the failed checks tomorrow. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #149 +/- ##
===========================================
- Coverage 85.72% 63.15% -22.57%
===========================================
Files 569 588 +19
Lines 28047 32008 +3961
===========================================
- Hits 24043 20215 -3828
- Misses 4004 11793 +7789 ☔ View full report in Codecov by Sentry. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Size test resultOld size: 8887808 bytes |
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.
Thanks for your contribution.
Could you add:
- A test
- A doxygen docstring (since these methods are part of the public API)
Sorry for the long silence. I'll be away for the next 3 weeks but I plan to get back to this after that. |
Bloaty Results 🐋Compared to main
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-149-compared-to-main.txtCompared to d387090 (legacy)
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-149-compared-to-legacy.txt |
The checks run through before the merge and it looks like the failures now have nothing to do with my changes. @louwers I hope I addressed your requests adequately (I'm not familiar with doxygen or GoogleTest). So this should be ready to merge now. |
Bloaty Results (iOS) 🐋Compared to main
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results-ios/pr-149-compared-to-main.txt |
@xabbu42 Seems like it runs through cleanly now. Let me have another look. |
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.
Two more nits, the getter can be marked const
. And you can remove the type from the Doxygen comments. Then it looks good to merge!
I fixed the docstrings. I'm not sure I understand about the missing const. |
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.
@xabbu42 Yup, that is what I meant.
https://en.cppreference.com/w/cpp/language/member_functions#Member_functions_with_cv-qualifiers
Thanks for your contribution!
This adds the methods setTiles and getTiles to VectorSource to mimick the maplibre-gl-js interface
introduced in mapbox/mapbox-gl-js#8048. This is useful to change parametrized data sources without having to load a complete new style.
Todo:
Any input especially about the race is appreciated.