-
-
Notifications
You must be signed in to change notification settings - Fork 643
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
Fix to run benchmark with MAPLIBRE_STYLES environment variables #2122 #4098
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4098 +/- ##
==========================================
+ Coverage 86.57% 86.59% +0.01%
==========================================
Files 241 241
Lines 32535 32535
Branches 1986 1990 +4
==========================================
+ Hits 28167 28173 +6
+ Misses 3418 3414 -4
+ Partials 950 948 -2 ☔ View full report in Codecov by Sentry. |
Is this documented in a readme somewhere? |
I think the require is needed when using local files and not public URLs. |
Oh, I don't care about local files. |
@@ -15,10 +15,25 @@ import {RollupOptions} from 'rollup'; | |||
|
|||
let styles = ['https://api.maptiler.com/maps/streets/style.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL']; | |||
|
|||
const loadStyle = async (styleURL: string): Promise<string> => { |
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.
How about using readFileSync to reduce the complexity of this method?
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 you your comment, I will fix it.
Thanks for taking the time to fix this!! |
I fix to use readFileSync. |
Launch Checklist
Bugfix for #2122.
CHANGELOG.md
under the## main
section.