iOS Mobile tiles briefly overlap controls
See original GitHub issueIn version 0.7, at times when panning/zooming tiles may overlap the zooming controls. This seems to be a z-index issue. It can be easily fixed by applying a z-index to the .leaftlet-control-container like such:
.leaflet-control-container { position: relative; z-index: 1000; }
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to CUSTOMIZE Your Lock Screen in iOS 16!! - YouTube
With iOS 16, you can finally customize your Lock Screen! You can choose the fonts, colors, and add a row of widgets to...
Read more >iOS 15 Safari Guide: Tabs, Extensions, Search Bar, and Other ...
The dedicated control bar was added in a later iOS 15 beta and ... You can tap on the tab button (which is...
Read more >how to overlap image on another images while dragging it in ...
Whenever an image view is touched for dragging you can move it to front by calling bringSubviewToFront .
Read more >About iOS 13 Updates - Apple Support
This update also introduces an option to control automatic prominence of video tiles on Group FaceTime calls and includes bug fixes and ...
Read more >Stage Manager in iPadOS 16: At the Intersection of Bugs ...
Normally, I would use the introduction of my iOS and iPadOS reviews ... The floating and overlapping nature of windows in Stage Manager...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you @alexborisov for the insights! I had the issue with the controls in
ngx-leaflet
, adding this solved my problem.👍 Hey I get the same issue with
react-leaflet
. In my case I have the map inside a relative container with an overlay container absolutely positioned over the top. I have z-index set high on the overlay and low on the map container. When I start to pan, specifically when new tiles are fetched, they appear over the top of everything - including the higher z ordered sibling overlay. It’s almost like the new tiles are completely outside the dom flow and ignore any rules of parent containers. I have tried nesting the map in div’s and setting their positions/zIndex’s with no success.This issue occurs ONLY on iOS (as far as I can tell).
UPDATE
As I was writing this @james-brndwgn’s post gave me an idea to look and I noticed something on a hunch. The loaded tiles are images with style
transform: translate3d(-6947px, -921px, 0px);
. I set my overlay sibling container totransform:translate3d(0,0,0)
and the issue was fixed.My conclusion:
translate3d
is a hardware accelerated rule. On iOS there is probably some platform specific way in which this is being handled. Since the 3rd property is the depth it looks like the renderer, either by flaw or by design, is simply drawing over the top of existing content. Any interaction with the page that causes a render event (say toggle an accordion elsewhere on the page) causes the overlay to appear and everything to look nice again. By setting an emptytranslate3d
property on my overlay I enable acceleration on that element and this seems to make the renderer to take it into account when rendering the tiles.That said my overlay is now always on top as it should be, but the map controls (as pointed out by the OP) still disappear. Hope this helps in any way 😃