mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

The info icon should be removed if the stylesheet is not from Mapbox

Open Roxyi opened this issue 8 years ago • 7 comments

mapbox-gl-js version: 0.43.0

It seems that in the v-0.43.0, if you are not using stylesheets from Mapbox, the Mapbox logo will not be shown on the map. image

However, when the size of the map container goes to 600px or less, there will be an info icon on the bottom-right of the map. image

If you click that info icon, there is nothing shown to you. I think it should be removed. Otherwise, there should be some information shown to users.

Roxyi avatar Jan 18 '18 20:01 Roxyi

It should show the copyright information about the map tiles. Are you missing that data in your data source?

ttsirkia avatar Jan 18 '18 21:01 ttsirkia

Keep in mid that "i" icon expands on mouse hover not on click, so sometimes is buggy especially on touchscreens when you try to click it.

andrewharvey avatar Jan 19 '18 12:01 andrewharvey

@ttsirkia You mean the style.json?

Roxyi avatar Jan 19 '18 16:01 Roxyi

@andrewharvey Here is a JSFiddle example I created. I don't see anything whether hover or click the "i"

Roxyi avatar Jan 19 '18 16:01 Roxyi

Typically the attribution info comes from the tiles. See Map.options to disable the mark.

ttsirkia avatar Jan 19 '18 16:01 ttsirkia

@ttsirkia Thank you. The attribution info is missing in the tiles of the basemap. I got rid of the "i" icon by disabling the attributionControl in map.options.

Roxyi avatar Jan 19 '18 21:01 Roxyi

Seems that this is fixed in #6042 so that the icon is not visible if the attribution info is empty.

ttsirkia avatar Jan 28 '18 09:01 ttsirkia