-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
There was an addtional div when LogoControl was removed #4813
Comments
Is this causing a particular issue? The logo control is always preset by default; whether it shows anything is dependent on what style you load and your Mapbox account. |
Noop, but I would expect the logo control to be hidden when there were no mapbox sources. After I checked the logo_control.js, I found the implemention was rather buggy. For example: https://github.com/mapbox/mapbox-gl-js/blob/master/src/ui/control/logo_control.js#L47 The logic of I think a simpler and cleaner logic to implement the logoControl is: creating all necessary div and a tag in |
@jingsam thanks for the flag. You're right, there are some issues w the logic in |
mapbox-gl-js version:
0.37.0
Steps to Trigger Behavior
https://jsfiddle.net/jingsam/ue99mkgy/1/
Expected Behavior
there should not exsit a
mapbox-ctrl
divActual Behavior
The text was updated successfully, but these errors were encountered: