Put maps side by side
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
@media (min-width: 800px) {
|
||||||
|
.half {
|
||||||
|
padding: 0 10px;
|
||||||
|
width: 50%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,10 +6,14 @@ docs: >
|
|||||||
Two maps (one with the Canvas renderer, one with the WebGL renderer) share the same center, resolution, rotation and layers.
|
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"
|
tags: "side-by-side, canvas, webgl"
|
||||||
---
|
---
|
||||||
<h4>Canvas</h4>
|
<div class="half">
|
||||||
<div id="canvasMap" class="map"></div>
|
<h4>Canvas</h4>
|
||||||
<h4>WebGL</h4>
|
<div id="canvasMap" class="map"></div>
|
||||||
<div id="webglMap" class="map"></div>
|
</div>
|
||||||
<div id="no-webgl" class="alert alert-danger" style="display: none">
|
<div class="half">
|
||||||
This map requires a browser that supports <a href="http://get.webgl.org/">WebGL</a>.
|
<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://get.webgl.org/">WebGL</a>.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user