-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiframe.html
More file actions
70 lines (67 loc) · 2.16 KB
/
Copy pathiframe.html
File metadata and controls
70 lines (67 loc) · 2.16 KB
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
<script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
<style type="text/css">
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script>
(() => {
"use strict";
var e = {
d: (o, t) => {
for (var a in t)
e.o(t, a) &&
!e.o(o, a) &&
Object.defineProperty(o, a, { enumerable: !0, get: t[a] });
},
o: (e, o) => Object.prototype.hasOwnProperty.call(e, o),
r: (e) => {
"undefined" != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }),
Object.defineProperty(e, "__esModule", { value: !0 });
},
},
o = {};
let t;
function a() {
t = new google.maps.Map(document.getElementById("map"), {
zoom: 2,
center: new google.maps.LatLng(2.8, -187.3),
mapTypeId: "terrain",
});
const e = document.createElement("script");
(e.src =
"https://developers.google.com/maps/documentation/javascript/examples/json/earthquake_GeoJSONP.js"),
document.getElementsByTagName("head")[0].appendChild(e);
}
e.r(o), e.d(o, { initMap: () => a, eqfeed_callback: () => n });
const n = function (e) {
for (let o = 0; o < e.features.length; o++) {
const a = e.features[o].geometry.coordinates,
n = new google.maps.LatLng(a[1], a[0]);
new google.maps.Marker({ position: n, map: t });
}
};
var r = window;
for (var l in o) r[l] = o[l];
o.__esModule && Object.defineProperty(r, "__esModule", { value: !0 });
})();
</script>
<div id="iframe-contents">
<div id="map"></div>
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&callback=initMap&v=weekly&channel=1"
async
></script>
</div>