Fixed positioning of the burst marker image

pull/90/merge
Jon Sowman 2012-03-30 09:46:28 +01:00
rodzic b91f9ffa72
commit 3c923385ae
1 zmienionych plików z 16 dodań i 10 usunięć

Wyświetl plik

@ -380,6 +380,12 @@ function parseCSV(lines) {
new google.maps.Point(0, 0),
new google.maps.Point(8, 8)
);
var burst_icon = new google.maps.MarkerImage(burst_img,
new google.maps.Size(16, 16),
new google.maps.Point(0, 0),
new google.maps.Point(8, 8)
);
var launch_marker = new google.maps.Marker({
position: launch_pt,
@ -397,23 +403,23 @@ function parseCSV(lines) {
+ POSIXtoHM(land_time) + "UTC"
});
var pop_marker = new google.maps.Marker({
position: burst_pt,
map: map,
icon: burst_icon,
title: 'Balloon burst (' + burst_lat + ', ' + burst_lon
+ ' at altitude ' + max_height + 'm) at '
+ POSIXtoHM(burst_time) + "UTC"
});
var path_polyline = new google.maps.Polyline({
path:path,
path: path,
map: map,
strokeColor: '#000000',
strokeWeight: 3,
strokeOpacity: 0.75
});
var pop_marker = new google.maps.Marker({
position: burst_pt,
map: map,
icon: burst_img,
title: 'Balloon burst (' + burst_lat + ', ' + burst_lon
+ ' at altitude ' + max_height + 'm) at '
+ POSIXtoHM(burst_time) + "UTC"
});
// Add the launch/land markers to map
// We might need access to these later, so push them associatively
map_items['launch_marker'] = launch_marker;