Skip to content

Commit 23b5628

Browse files
rework UI due to GMaps API UI changes
1 parent 8dd11a1 commit 23b5628

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

cache.manifest-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CACHE MANIFEST
22
# version {VERSION}
33

44
# gogole maps files
5-
http://maps.gstatic.com/cat_js/maps-api-v3/api/js/18/22/%7Bmain,common,controls,ga,geometry,infowindow,kml,map,marker,onion,overlay,poly,stats,util,weather,weather_impl%7D.js
5+
http://maps.google.com/maps/api/js?v=3.22&sensor=false&libraries=map,common,controls,util,marker,onion,kml,ga,infowindow,stats,poly,overlay,weather,weather_impl,geometry&language=en_us&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg
66
http://fonts.googleapis.com/css?family=Roboto:300,400,500,700
77
http://maps.gstatic.com/mapfiles/undo_poly.png
88
http://maps.gstatic.com/mapfiles/mv/imgs8.png

css/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ body {
9898

9999
#timebox {
100100
top: 7px;
101-
left: 30px;
101+
right: 5px;
102102
}
103103

104104
#lookanglesbox {
105105
top: 40px;
106-
left: 30px;
106+
right: 5px;
107107
}
108108

109109
#timebox.past svg path {

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ <h2>Chase car mode</h2>
309309
</div>
310310
</div>
311311
</div>
312-
<script src="http://maps.google.com/maps/api/js?v=3.16&sensor=false&libraries=map,common,controls,util,marker,onion,kml,ga,infowindow,stats,poly,overlay,weather,weather_impl,geometry&language=en_us&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg" type="text/javascript"></script>
312+
<script src="http://maps.google.com/maps/api/js?v=3.22&sensor=false&libraries=map,common,controls,util,marker,onion,kml,ga,infowindow,stats,poly,overlay,weather,weather_impl,geometry&language=en_us&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg" type="text/javascript"></script>
313313
<script type="text/javascript" language="javascript" src="js/mobile.js"></script>
314314
<!--
315315
<script type="text/javascript" language="javascript" src="js/gmaps_extentions.js"></script>

js/gmaps_extentions.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ google.maps.DropDownControl = function(options) {
9494
this.div_ = document.createElement('div');
9595
this.div_.className = "gmnoprint";
9696
this.div_.draggable = false;
97-
this.div_.style.cssText = "margin: 5px; margin-top: 0;z-index: 0; position: absolute; cursor: pointer; text-align: left; width: 100px; right: 0px; top: 0px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none";
97+
this.div_.style.cssText = "margin: 10px; margin-top: 0;z-index: 0; position: absolute; cursor: pointer; text-align: left; width: 85px; right: 0px; top: 0px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none";
9898

9999
this.div_head = document.createElement('div');
100-
this.div_head.style.cssText = "direction: ltr; overflow: hidden; text-align: left; position: relative; color: rgb(0, 0, 0); font-family: Roboto,Arial,sans-serif; -moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select: none; font-size: 11px; background-color: rgb(255, 255, 255); padding: 1px 6px; border-radius: 2px; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.15); box-shadow: 0px 1px 4px -1px rgba(0, 0, 0, 0.3); font-weight: 500;";
100+
this.div_head.style.cssText = "direction: ltr; overflow: hidden; text-align: left; position: relative; color: rgb(0, 0, 0); font-family: Roboto, Arial, sans-serif; -webkit-user-select: none; font-size: 11px; padding: 8px; border-radius: 2px; -webkit-background-clip: padding-box; box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px; font-weight: 500; background-color: rgb(255, 255, 255); background-clip: padding-box;";
101101
this.div_head.title = options.title;
102102

103103
google.maps.event.addDomListener(this.div_head, 'mouseover', function(){
@@ -119,13 +119,13 @@ google.maps.DropDownControl = function(options) {
119119

120120
// generate list of dropdown entries
121121
this.div_list = document.createElement('div');
122-
this.div_list.style.cssText = "background-color: white; z-index: -1; padding-top: 2px; background-clip: padding-box; border-width: 0px 1px 1px; border-style: none solid solid; border-color: use-text-color rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15); border-top-colors: none; border-right-colors: none; border-bottom-colors: none; border-left-colors: none; border-image: none; box-shadow: 0px 1px 4px -1px rgba(0, 0, 0, 0.3); position: relative; text-align: left; display: none;";
122+
this.div_list.style.cssText = "z-index: -1; padding: 2px; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px; position: absolute; top: 100%; left: 0px; right: 0px; text-align: left; display: none; background-color: white;";
123123

124124
var div_list = this.div_list;
125125

126126
options.list.forEach(function(name) {
127127
var row = document.createElement('div');
128-
row.style.cssText = "color: rgb(86, 86, 86); font-family: Roboto,Arial,sans-serif; -moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select: none; font-size: 11px; background-color: rgb(255, 255, 255); padding: 3px; padding-top: 2px; padding-bottom: 2px; line-height: 11px; font-weight: 500;";
128+
row.style.cssText = "color: rgb(86, 86, 86); font-family: Roboto, Arial, sans-serif; -webkit-user-select: none; font-size: 11px; padding: 6px; background-color: rgb(255, 255, 255);";
129129
row.innerHTML = name;
130130

131131
google.maps.event.addDomListener(row, 'click', function(){

js/tracker.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function wrapTiles(x, zoom) {
253253
// format: [ name, attr, minZoom, maxZoom, getTileUrl function ]
254254
var maptypes = {
255255
bing_os: [
256-
'Ordnance Survey (UK)',
256+
'Ord. Survey',
257257
'Bing.com & Ordnance Survey',
258258
10,
259259
17,
@@ -274,14 +274,14 @@ var maptypes = {
274274
function(xy,z) { var n = Math.pow(2,z); return (xy.y<0 || xy.y>=n) ? null : 'http://'+['a','b','c'][Math.abs(xy.x+xy.y)%3]+'.basemaps.cartocdn.com/dark_all/'+z+'/'+wrapTiles(xy.x,z)+'/'+xy.y+'.png'; }
275275
],
276276
osm_toner: [
277-
'OSM Toner',
277+
'Toner',
278278
'Stamen.org Toner',
279279
1,
280280
18,
281281
function(xy,z) { var n = Math.pow(2,z); return (xy.y<0 || xy.y>=n) ? null : 'http://'+['a','b','c','d'][Math.abs(xy.x+xy.y)%4]+'.tile.stamen.com/toner/'+z+'/'+wrapTiles(xy.x,z)+'/'+xy.y+'.png'; }
282282
],
283283
osm_watercolor: [
284-
'OSM Watercolor',
284+
'Watercolor',
285285
'Stamen.org Watercolor',
286286
1,
287287
18,
@@ -462,7 +462,7 @@ function load() {
462462
map: map,
463463
title: "Show activity for given period",
464464
//position: google.maps.ControlPosition.TOP_RIGHT,
465-
position: google.maps.ControlPosition.RIGHT_TOP,
465+
position: google.maps.ControlPosition.LEFT_TOP,
466466
headerPrefix: "Last: ",
467467
list: modeList,
468468
listDefault: modeList.indexOf(wvar.mode),
@@ -483,7 +483,7 @@ function load() {
483483
setTimeout(function() {
484484
var elm = $("#timebox");
485485

486-
if(is_mobile) $(".slickbox").css({left:'5px'});
486+
//if(is_mobile) $(".slickbox").css({left:'5px'});
487487
var origW = elm.width();
488488
var iconW = elm.find("svg").width();
489489

0 commit comments

Comments
 (0)