Skip to content

Commit eb08d9a

Browse files
committed
Remove jquery dependency.
1 parent e1218ea commit eb08d9a

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

index.html

+11-16
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,10 @@
66
<link rel="stylesheet" href="leaflet-dist/leaflet.css" />
77
<link rel="stylesheet" href='reset.css' />
88
<link rel="stylesheet" href='style.css' />
9-
<script src='jquery.min.js'></script>
10-
<script src='underscore.js'></script>
119
<script src='leaflet-dist/leaflet.js'></script>
12-
<script type="text/javascript"
13-
src="http://maps.googleapis.com/maps/api/js?key=AIzaSyD-TB_1Ytvh0CjizmBk1x0low0izcy0Cyo&sensor=false">
14-
</script>
15-
</head>
16-
<body>
17-
<div class='map' id='osm'>
18-
</div>
19-
<div class='map' id='google'>
20-
</div>
21-
</body>
22-
</html>
23-
10+
<script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyD-TB_1Ytvh0CjizmBk1x0low0izcy0Cyo&sensor=false"></script>
2411
<script>
25-
$(function() {
12+
function initialize() {
2613
var osmLayer = new L.TileLayer(
2714
'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png',
2815
{maxZoom: 18, attribution: 'Map data &copy; 2011 OpenStreetMap contributors.'});
@@ -63,5 +50,13 @@
6350
omap.on('moveend', omapMove);
6451
google.maps.event.addListener(gmap, 'center_changed', gmapMove);
6552
google.maps.event.addListener(gmap, 'zoom_changed', gmapMove);
66-
});
53+
};
6754
</script>
55+
</head>
56+
<body onload='initialize()'>
57+
<div class='map' id='osm'>
58+
</div>
59+
<div class='map' id='google'>
60+
</div>
61+
</body>
62+
</html>

0 commit comments

Comments
 (0)