Skip to content

Commit

Permalink
Mobile Tracker now integrated with GMap API 3
Browse files Browse the repository at this point in the history
Closes rossengeorgiev#2

* updated build.sh
* lowered the size of target*.png to 30x30 px
* removed a lot of legacy code
* optimized a lot of the routines
* implement follow functionality, which replaces pan on expand
* map is more responsive and snappy across devices

* fixes dragging issue on android devices; Closes rossengeorgiev#4
* horizon range drawing is handled by google api, which will
  properly visualize it over the projection; Closes rossengeorgiev#11
* enabled zoom slider; Closes rossengeorgiev#13
  • Loading branch information
rossengeorgiev committed Jan 22, 2013
1 parent 4bd4f5a commit e96ba5f
Show file tree
Hide file tree
Showing 10 changed files with 188 additions and 204 deletions.
3 changes: 0 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ rm -f mobile.js
cat jquery* iscroll.js >> mobile.js

# compile the rest
java -jar "../tools/yuicompressor-2.4.8pre.jar" --type=js --disable-optimizations --nomunge BDCCCircle.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8pre.jar" --type=js --disable-optimizations --nomunge PolylineEncoder.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8pre.jar" --type=js --disable-optimizations --nomunge balloonmarker.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8pre.jar" --type=js --disable-optimizations --nomunge chasecar.lib.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8pre.jar" --type=js --disable-optimizations --nomunge tracker.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8pre.jar" --type=js --disable-optimizations --nomunge app.js >> mobile.js
Expand Down
2 changes: 1 addition & 1 deletion css/mobile.css

Large diffs are not rendered by default.

Binary file modified img/markers/target-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/markers/target-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/markers/target-red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/markers/target-yellow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,13 @@ <h2>Chase car mode</h2>
</div>
</div>
<script src="http://maps.google.com/maps/api/js?sensor=false&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="js/mobile.js"></script>
<!--
<script type="text/javascript" language="javascript" src="js/jquery-1.8.3-min.js"></script>
<script type="text/javascript" language="javascript" src="js/chasecar.lib.js"></script>
<script type="text/javascript" language="javascript" src="js/iscroll.js"></script>
<script type="text/javascript" language="javascript" src="js/tracker.js"></script>
<script type="text/javascript" language="javascript" src="js/app.js"></script>
-->
</body>
</html>
2 changes: 1 addition & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ $(window).ready(function() {
}

// pan to selected vehicle
panTo(parseInt(e.attr('class').match(/vehicle(\d+)/)[1]));
followVehicle(parseInt(e.attr('class').match(/vehicle(\d+)/)[1]));
}
});

Expand Down
2 changes: 2 additions & 0 deletions js/mobile.js

Large diffs are not rendered by default.

Loading

0 comments on commit e96ba5f

Please sign in to comment.