UNPKG

1.07 kBHTMLView Raw
1---
2layout: example.html
3title: Bing Maps
4shortdesc: Example of a Bing Maps layer.
5docs: >
6 <p>When the Bing Maps tile service doesn't have tiles for a given resolution and region it returns "placeholder" tiles indicating that. Zoom the map beyond level 19 to see the "placeholder" tiles. If you want OpenLayers to display stretched tiles in place of "placeholder" tiles beyond zoom level 19 then set <code>maxZoom</code> to <code>19</code> in the options passed to <code>ol.source.BingMaps</code>.</p>
7tags: "bing, bing-maps"
8cloak:
9 As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5: Your Bing Maps Key from http://www.bingmapsportal.com/ here
10---
11 <div id="map" class="map"></div>
12 <select id="layer-select">
13 <option value="Aerial">Aerial</option>
14 <option value="AerialWithLabels" selected>Aerial with labels</option>
15 <option value="Road">Road (static)</option>
16 <option value="RoadOnDemand">Road (dynamic)</option>
17 <option value="collinsBart">Collins Bart</option>
18 <option value="ordnanceSurvey">Ordnance Survey</option>
19 </select>