maplibre / maplibre-gl-js

MapLibre GL JS - Interactive vector tile maps in the browser
https://maplibre.org/maplibre-gl-js/docs/
Other
6.58k stars 707 forks source link

Implement new logic for displaying the MapLibre logo #121

Closed klokan closed 3 years ago

klokan commented 3 years ago

In #82 the new MapLibre SVG logo was pushed - on request of @nyurik

Currently, it is only displayed if a TileJSON of sources contains "mapbox_logo" https://github.com/maplibre/maplibre-gl-js/blob/main/src/ui/control/logo_control.js#L64

We may want to define a new logic for the purpose of MapLibre open-source project. Perhaps having in the constructor the logic to turn it on/off - with an agreed default?

Maybe we can push into TileJSON spec the URL to the logo to be displayed?

dbrgn commented 3 years ago

The source mentions:

/**
 * A `LogoControl` is a control that adds the Mapbox watermark
 * to the map as required by the [terms of service](https://www.mapbox.com/tos/) for Mapbox
 * vector tiles and core styles.

I may be blind, but which part of the TOS actually mentions this logo requirement? Furthermore, if it's still there, would the MapLibre logo fulfil that?

The attribution is already present in the lower right corner ("© Mapbox © OpenStreetMap"), shouldn't that be sufficient?

jbelien commented 3 years ago

The link on the logo also still sends to https://www.mapbox.com/ https://github.com/maplibre/maplibre-gl-js/blob/c47d053f010fe221a511a44a44333b5d29e447dc/src/ui/control/logo_control.js#L33

wipfli commented 3 years ago

Thanks for pointing this out @jbelien. Would you like to open a pull request for this?

habi commented 3 years ago

I tried to make a PR correcting the link in the line that @jbelien found.

tunnelpuzzle commented 3 years ago

Is there an update on this? Right now the Maplibre logo control is displayed if you use a Mapbox data source which doesn't really make sense.

HarelM commented 3 years ago

@tunnelpuzzle can you make a PR to fix this? Better if you could do it over the typescript branch as this branch will hopefully get into main soon.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 7 days with no activity.