-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Border around layercontrol not consistent with border around zoom control on mobile #2012
Comments
I don't understand how that can be possible, as there's only one CSS line related to both zoom control and layers control and it sets the same border for them: https://github.com/Leaflet/Leaflet/blob/master/dist/leaflet.css#L392 Maybe it's something on your app side? |
I don't think so. Even if I modified the CSS, it would apply to both controls. Meanwhile I found a solution:
I suppose its an inherited problem, but I haven't dug further. Update: Update 2:
doesn't mess up the layer list but draws a decent transparent border around it. |
@Grundguetiger that's really weird! I don't understand what's going on here. |
...welcome to my club ;) I think it inherits an implicit property change from somewhere. ...after taking a closer look at the scale control: May be consider removing the hardly visible but rather expensive box & text shadow effect on mobiles? Edit: The class is .leaflet-control-scale-line and .leaflet-control-scale-line:not(:first-child) just a thought. |
All right, improved mobile styles significantly, fixed the border alpha, and remove text shadow. |
Issue Leaflet#2012 covers mobile devices Leaflet/Leaflet.draw#629 detected an issue with svg in .leaflet-bar for retina or 'zoomed in' on chrome that would ignore scaling when using negative background positions.
On a full up-to-date Galaxy S3, S2 and Nexus 7 (Chrome and Firefox) the borders around the +- zoom control are transparent, but around the layer control its completely opaque.
The text was updated successfully, but these errors were encountered: