-
-
Notifications
You must be signed in to change notification settings - Fork 754
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
Default attribution #3618
Default attribution #3618
Conversation
CC: @wipfli you can try it out. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3618 +/- ##
==========================================
+ Coverage 86.91% 87.19% +0.27%
==========================================
Files 240 240
Lines 32211 32214 +3
Branches 2092 2093 +1
==========================================
+ Hits 27997 28088 +91
+ Misses 3272 3202 -70
+ Partials 942 924 -18 ☔ View full report in Codecov by Sentry. |
Thanks for writing this pull request @HarelM. I wanted to try it out locally with the examples, but looks like they use the published version of GL JS. Is that right? |
Use npm run start and surf to the relevant example. |
So basically to remove the "MapLibre" in the attribution users have to do this: const map = new maplibregl.Map({
// ...
attributionControl: false,
});
map.addControl(new maplibregl.AttributionControl({
customAttribution: ''
})); is that correct? |
I think we should use the new logo from #3631 which is gray scale rather than this version here... |
Feel free to push updates to this branch. I have no hard feelings either way. |
Make sure you remove all the extra annotations from the svg to reduce svg size in production. |
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 think a grayscale logo has a better chance of being used by people.
I don't think people will voluntarily add the logo to their app, so I think the logo is a better approach in terms of "marketing", but I don't have strong feelings either way. |
@HarelM Well Komoot proudly gives MapLibre credit for example. And not everybody is building an app with MapLibre. When someone includes a map in a blog post for example, I can imagine people don't mind showing the logo. |
So what about the grayscle icon (the other PR which should target this branch)? Should we use it or not? |
Yes let's use that one! |
Looks good to me. Thanks for working on this @HarelM! |
Was it intentional for the attribution to be always collapsed by default? I can't quite tell from the PR description. If so, maybe the sentence that recommends to keep it expanded (https://github.com/maplibre/maplibre-gl-js/pull/3618/files#diff-7489f127e6e44739b4d10d3d5102ca30e47ff444ebba85ea9921e558e9468676L14) should be removed, as well guidance on how to get "automatic" mode back (passing anything but a boolean works, but it's not obvious when just reading the docs) |
As can be seen here: |
Launch Checklist
Update icon, add attribution by default.
I find the configuration a bit too verbose both for the logo and attribution, maybe we could reduce some of the configuration by using a single parameter for each, IDK...
CHANGELOG.md
under the## main
section.New logo, not on by default:
Default attribution now on: