UNPKG

624 BHTMLView Raw
1---
2layout: example.html
3title: Shared Views
4shortdesc: Two maps with different renderers share view properties
5docs: >
6 Two maps (one with the Canvas renderer, one with the WebGL renderer) share the same center, resolution, rotation and layers.
7tags: "side-by-side, canvas, webgl"
8---
9<div class="half">
10 <h4>Canvas</h4>
11 <div id="canvasMap" class="map"></div>
12</div>
13<div class="half">
14 <h4>WebGL</h4>
15 <div id="webglMap" class="map"></div>
16 <div id="no-webgl" class="alert alert-danger" style="display: none">
17 This map requires a browser that supports <a href="http://get.webgl.org/">WebGL</a>.
18 </div>
19</div>