Skip to content

Commit

Permalink
Merge pull request #17 from brewster1134/display-only-active-prev-tiles
Browse files Browse the repository at this point in the history
makes tiles hidden by default to avoid instances of DOM overload for …
  • Loading branch information
Tyler Burton authored Mar 14, 2017
2 parents 99d9ee9 + bbf5cf2 commit 09bc78f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demo/tiler_demo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions lib/tiler.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
perspective: 1000;
position: absolute;
overflow: hidden;
display: block;
display: none;
z-index: -1;
width: 100%; }
.tiler-viewport .tiler-tile.active {
z-index: 2; }
z-index: 2;
display: block; }
.tiler-viewport .tiler-tile.previous {
z-index: 1; }
z-index: 1;
display: block; }
2 changes: 1 addition & 1 deletion lib/tiler.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/tiler.sass
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@
+gpu
position: absolute
overflow: hidden
display: block
display: none
z-index: -1
width: 100%

&.active
z-index: 2
display: block
&.previous
z-index: 1
display: block

0 comments on commit 09bc78f

Please sign in to comment.