File tree 2 files changed +11
-20
lines changed
2 files changed +11
-20
lines changed Original file line number Diff line number Diff line change 6
6
< link rel ="stylesheet " href ="leaflet-dist/leaflet.css " />
7
7
< link rel ="stylesheet " href ='reset.css ' />
8
8
< link rel ="stylesheet " href ='style.css ' />
9
- < script src ='jquery.min.js '> </ script >
10
- < script src ='underscore.js '> </ script >
11
9
< 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 >
24
11
< script >
25
- $ ( function ( ) {
12
+ function initialize ( ) {
26
13
var osmLayer = new L . TileLayer (
27
14
'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png' ,
28
15
{ maxZoom : 18 , attribution : 'Map data © 2011 OpenStreetMap contributors.' } ) ;
63
50
omap . on ( 'moveend' , omapMove ) ;
64
51
google . maps . event . addListener ( gmap , 'center_changed' , gmapMove ) ;
65
52
google . maps . event . addListener ( gmap , 'zoom_changed' , gmapMove ) ;
66
- } ) ;
53
+ } ;
67
54
</ 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 >
You can’t perform that action at this time.
0 commit comments