File tree Expand file tree Collapse file tree 4 files changed +44
-190
lines changed
Expand file tree Collapse file tree 4 files changed +44
-190
lines changed Original file line number Diff line number Diff line change 99 < link rel ="stylesheet " href ="css/mobile.css "/>
1010 < link rel ="shortcut icon " href ="favicon.ico " />
1111 </ head >
12- < body onload =" load(); " >
12+ < body >
1313
1414 < div id ="loading "> </ div >
1515
@@ -98,7 +98,11 @@ <h2>Chase car mode</h2>
9898 </ div >
9999 </ div >
100100 </ div >
101- < script src ="http://maps.google.com/maps?file=api&v=2&sensor=false&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg " type ="text/javascript "> </ script >
102- < script type ="text/javascript " language ="javascript " src ="js/mobile.js "> </ script >
101+ < script src ="http://maps.google.com/maps/api/js?sensor=false&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg " type ="text/javascript "> </ script >
102+ < script type ="text/javascript " language ="javascript " src ="js/jquery-1.8.3-min.js "> </ script >
103+ < script type ="text/javascript " language ="javascript " src ="js/balloonmarker.js "> </ script >
104+ < script type ="text/javascript " language ="javascript " src ="js/iscroll.js "> </ script >
105+ < script type ="text/javascript " language ="javascript " src ="js/tracker.js "> </ script >
106+ < script type ="text/javascript " language ="javascript " src ="js/app.js "> </ script >
103107 </ body >
104108</ html >
Original file line number Diff line number Diff line change @@ -298,4 +298,7 @@ $(window).ready(function() {
298298 window . scrollTo ( 0 , 1 ) ;
299299 } , 500 ) ;
300300 } , 100 ) ;
301+
302+ // finally load map
303+ load ( ) ;
301304} ) ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function BalloonMarker(latlng, opts) {
2929
3030/* BalloonMarker extends GOverlay class from the Google Maps API
3131 */
32- BalloonMarker . prototype = new GOverlay ( ) ;
32+ BalloonMarker . prototype = new google . maps . OverlayView ( ) ;
3333
3434/* Creates the DIV representing this BalloonMarker.
3535 * @param map {GMap2} Map that bar overlay is added to.
@@ -56,7 +56,7 @@ BalloonMarker.prototype.initialize = function(map) {
5656 div . style . backgroundPosition = "" + ( ( image_width - image_shadow_width ) / 2 ) + "px " + ( image_height + me . altitude_ - image_shadow_height ) + "px" ;
5757 }
5858
59- GEvent . addDomListener ( this . img_ , "click" , function ( event ) {
59+ google . maps . Event . addDomListener ( this . img_ , "click" , function ( event ) {
6060 me . clicked_ = 1 ;
6161 GEvent . trigger ( me , "click" ) ;
6262 } ) ;
You can’t perform that action at this time.
0 commit comments