File: index.html

package info (click to toggle)
modestmaps-js 3.3.6%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,184 kB
  • ctags: 1,465
  • sloc: makefile: 58
file content (45 lines) | stat: -rw-r--r-- 1,271 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html>
    <head>
        <title>ModestMaps JS: Hash URLs</title>
        <script type="text/javascript" src="../../modestmaps.js"></script>
        <script type="text/javascript">
        var MM = com.modestmaps,
            map, hash;

        function initMap() {
            var provider = new MM.TemplatedLayer("http://acetate.geoiq.com/tiles/acetate/{Z}/{X}/{Y}.png");
            map = new MM.Map("map", provider);
            map.setCenterZoom(new MM.Location(37.804, -122.252), 12);
            hash = new MM.Hash(map);
        }

        </script>
        <style type="text/css">

            body {
                font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
                font-size: 14px;
                line-height: 16px;
                padding: 20px;
                margin: 0;
            }

            h1 {
                margin: 0 0 20px 0;
            }

            #map {
                width: 100%;
                height: 500px;
            }

        </style>
    </head>
    <body onload="initMap()">
        <h1>ModestMaps JS: Hash URLs</h1>
        <p>Go to: <a href="#17/37.7647404/-122.4195235">Stamen</a>, <a href="#18/0/0">null island</a></p>
        <div id="map">
        </div>
    </body>
</html>