-
-
Notifications
You must be signed in to change notification settings - Fork 790
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 getLayersOrder() to Map and Style #3279
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3279 +/- ##
==========================================
+ Coverage 75.23% 75.45% +0.21%
==========================================
Files 241 241
Lines 19256 19260 +4
Branches 4339 4339
==========================================
+ Hits 14488 14532 +44
+ Misses 4768 4728 -40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Mainly nit picking. |
See the linked issue I filed. I was originally using getStyle(), but it explicitly excludes "custom" layers. As far as I can tell, there is no other way to get the full order, custom layers included. Also, FWIW, there is a similar issue filed in mapbox. The suggestion there was to use _order directly, but that felt wrong. |
Thank you @HarelM ! |
Launch Checklist
Closes #3277. Adds a getter for Style's _order "private" property to Style and Map.
CHANGELOG.md
under the## main
section.