Sha256: 11285cf7476da9f54da195598aefbd1906f1e8fa6153009e2279710a2fbc0039

Contents?: true

Size: 1.91 KB

Versions: 7

Compression:

Stored size: 1.91 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <title>OpenLayers Bing Example</title>
    <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
    <link rel="stylesheet" href="style.css" type="text/css">

    <script src="../lib/OpenLayers.js"></script>
    <script>

        // API key for http://openlayers.org. Please get your own at
        // http://bingmapsportal.com/ and use that instead.
        var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";
        var map;

        function init() {
            map = new OpenLayers.Map("map");
            
            map.addControl(new OpenLayers.Control.LayerSwitcher());

            var road = new OpenLayers.Layer.Bing({
                name: "Road",
                key: apiKey,
                type: "Road"
            });
            var hybrid = new OpenLayers.Layer.Bing({
                name: "Hybrid",
                key: apiKey,
                type: "AerialWithLabels"
            });
            var aerial = new OpenLayers.Layer.Bing({
                name: "Aerial",
                key: apiKey,
                type: "Aerial"
            });

            map.addLayers([road, hybrid, aerial]);

            map.setCenter(new OpenLayers.LonLat(-110, 45), 3);
        }

    </script>
  </head>
  <body onload="init()">
    <h1 id="title">Bing Example</h1>

    <div id="tags">
        Bing, Microsoft, Virtual Earth, light
    </div>

    <p id="shortdesc">
        Demonstrates the use of Bing layers.
    </p>

    <div id="map" class="smallmap"></div>
    <div id="docs"><p>This example demonstrates the ability to create layers
        using tiles from Bing maps.</p></div>
  </body>
</html>


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
postrunner-0.0.10 misc/openlayers/examples/bing.html
postrunner-0.0.9 misc/openlayers/examples/bing.html
postrunner-0.0.8 misc/openlayers/examples/bing.html
postrunner-0.0.7 misc/openlayers/examples/bing.html
postrunner-0.0.6 misc/openlayers/examples/bing.html
postrunner-0.0.5 misc/openlayers/examples/bing.html
postrunner-0.0.4 misc/openlayers/examples/bing.html