forked from mozilla/popcorn-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popcorn.openmap.html
executable file
·94 lines (90 loc) · 2.71 KB
/
popcorn.openmap.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<title>Popcorn Open Map Plug-in Demo</title>
<script src="../../popcorn.js"></script>
<script src="popcorn.openmap.js"></script>
<script>
document.addEventListener( "DOMContentLoaded", function() {
Popcorn( "#video" )
.volume( 0 )
.play()
.openmap( {
start: 0,
end: 10,
type: "ROADMAP",
target: "map",
lat: 43.665429,
lng: -79.403323,
zoom: "10"
})
.openmap( {
start: 10,
end: 20,
type: "STAMEN-TONER",
target: "map",
lat: 37.7706,
lng: -122.3782,
zoom: 12
} )
.openmap( {
start: 0,
end: 30,
type: "SATELLITE",
target: "map2",
lat: 42.358544,
lng: -71.05957,
zoom: 9,
markers: [
{
location: "Cambridge, MA",
icon: "http://google-maps-icons.googlecode.com/files/vegetarian.png",
text: "Clickable markers",
size: 10
},
{
lat: 42.358544,
lng: -71.05957,
icon: "http://google-maps-icons.googlecode.com/files/walking-tour.png",
text: "Another clickable marker"
}
]
})
.openmap({
start: 0,
end: 20,
type: "TERRAIN",
target: "map3",
lat: 40.943926,
lng: -78.968525,
zoom: 14
});
}, false);
</script>
</head>
<body>
<h1 id="qunit-header">Popcorn Open Map Plug-in Demo</h1>
<p> An OpenLayers + OpenStreetMap Map displaying Toronto, Ontario will appear at 0 seconds and disappear at 20 seconds.</p>
<p> An OpenLayers + NASA LandSat Map displaying Boston and a map marker will appear at 0 seconds and disappear at 30 seconds.</p>
<p> An OpenLayers + USGS Topographic Map displaying Punxsutawney, PA will appear at 0 seconds and disappear at 20 seconds.</p>
<div>
<video id="video"
controls
width="250px"
poster="../../test/poster.png">
<source id="mp4"
src="../../test/trailer.mp4"
type='video/mp4; codecs="avc1, mp4a"'>
<source id="ogv"
src="../../test/trailer.ogv"
type='video/ogg; codecs="theora, vorbis"'>
<p>Your user agent does not support the HTML5 Video element.</p>
</video>
</div>
<div style="width:1000px">
<div id="map" style="position:relative;float:left;width:300px;height:400px"><p>Locations in this video:</p></div>
<div id="map2" style="position:relative;float:left;width:300px;height:400px"><p>Locations in this video:</p></div>
<div id="map3" style="position:relative;float:left;width:300px;height:400px"><p>Locations in this video:</p></div>
</div>
</body>
</html>