Skip to content

Commit

Permalink
Added Google Maps RichMarker library to web interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestaylr committed Jun 8, 2015
1 parent 4be76f4 commit 4483489
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCvKCMy7h_YhBhH7oSl1lXKuWjS-jPhbg">
</script>
<script type="text/javascript" src="{{ static_url("js/lib/custom-marker.js") }}"></script>
<script type="text/javascript" src="{{ static_url("js/richmarker.js") }}"></script>
<script type="text/javascript" src="{{ static_url("js/map.js") }}"></script>
<script type="text/javascript" src="{{ static_url("js/websocket-client.js") }}">
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/web/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function initialize() {

map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);

boat_marker = new CustomMarker({
boat_marker = new RichMarker({
position : map.getCenter(),
map : map,
content : '<div class="boat"></div>',
Expand All @@ -86,7 +86,7 @@ function update_boat_marker(lat, long) {
function add_marker(type, lat, long) {
var location = new google.maps.LatLng(lat, long);

var marker = new CustomMarker({
var marker = new RichMarker({
position : location,
map : map,
content : '<div class="' + type + '"></div>',
Expand Down
37 changes: 37 additions & 0 deletions src/web/js/richmarker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4483489

Please sign in to comment.