Skip to content

Commit

Permalink
Put maps side by side
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Nov 6, 2016
1 parent f6e9c12 commit 8529a74
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
7 changes: 7 additions & 0 deletions examples/side-by-side.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@media (min-width: 800px) {
.half {
padding: 0 10px;
width: 50%;
float: left;
}
}
16 changes: 10 additions & 6 deletions examples/side-by-side.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
Two maps (one with the Canvas renderer, one with the WebGL renderer) share the same center, resolution, rotation and layers.
tags: "side-by-side, canvas, webgl"
---
<h4>Canvas</h4>
<div id="canvasMap" class="map"></div>
<h4>WebGL</h4>
<div id="webglMap" class="map"></div>
<div id="no-webgl" class="alert alert-danger" style="display: none">
This map requires a browser that supports <a href="http:https://get.webgl.org/">WebGL</a>.
<div class="half">
<h4>Canvas</h4>
<div id="canvasMap" class="map"></div>
</div>
<div class="half">
<h4>WebGL</h4>
<div id="webglMap" class="map"></div>
<div id="no-webgl" class="alert alert-danger" style="display: none">
This map requires a browser that supports <a href="http:https://get.webgl.org/">WebGL</a>.
</div>
</div>

0 comments on commit 8529a74

Please sign in to comment.