Project

General

Profile

Download (1.72 KB) Statistics
| Branch: | Tag: | Revision:
1
<!DOCTYPE html>
2
<html>
3
    <head>
4
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
6
    <meta name="apple-mobile-web-app-capable" content="yes">
7
        <title>OpenLayers 2 Google (v3) Layer Example</title>
8
        <link rel="stylesheet" href="../../OpenLayers-2.13.1/theme/default/style.css" type="text/css">
9
        <link rel="stylesheet" href="style.css" type="text/css">
10
        <script src="http://maps.google.com/maps/api/js?v=3&amp;sensor=false"></script>
11
        <script src="../OpenLayers.js"></script>
12
        <script src="google.js"></script>
13
    </head>
14
    <body onload="init()">
15
        <h1 id="title">Google (v3) Layer Example</h1>
16
        <div id="tags">
17
            Google, api key, apikey, light
18
        </div>
19
        <p id="shortdesc">
20
            Demonstrate use the Google Maps v3 API.
21
        </p>
22
        <div id="map" class="smallmap"></div>
23
        <div id="docs">
24
            <p><input id="animate" type="checkbox" checked="checked">Animated
25
                zoom (if supported by GMaps on your device)</input></p>
26
            <p>
27
                Google is encouraging the use of keys for Google Maps APIs as
28
                described here: <a href="https://developers.google.com/maps/documentation/javascript/get-api-key">https://developers.google.com/maps/documentation/javascript/get-api-key</a>.
29
                Once you have included the Google Maps script in your html,
30
                refer to the
31
                <a href="google.js" target="_blank">google.js source</a>
32
                to see how to use Google Maps as layer in OpenLayers.
33
            </p>
34
        </div>
35
    </body>
36
</html>
(1-1/3)