Skip to content

Commit ab5322b

Browse files
fix locate-me marker's anchor to be at the bottom
1 parent b82b1c3 commit ab5322b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/tracker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ var notamOverlay = null;
3232
var Z_RANGE = 1;
3333
var Z_STATION = 2;
3434
var Z_PATH = 10;
35+
var Z_ME = 11;
3536
var Z_SHADOW = 1000000;
3637
var Z_CAR = 1000001;
3738
var Z_PAYLOAD = 1000002;
@@ -1116,9 +1117,9 @@ function updateCurrentPosition(lat, lon) {
11161117
url: "img/marker-you.png",
11171118
size: new google.maps.Size(21,50),
11181119
scaledSize: new google.maps.Size(21,50),
1119-
anchor: new google.maps.Point(10,25)
1120+
anchor: new google.maps.Point(10,50)
11201121
},
1121-
zIndex: Z_CAR,
1122+
zIndex: Z_ME,
11221123
position: latlng,
11231124
map: map,
11241125
optimized: false,

0 commit comments

Comments
 (0)