diff options
Diffstat (limited to 'worldmap-save.c')
-rw-r--r-- | worldmap-save.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/worldmap-save.c b/worldmap-save.c index 0c40bc30f..36ee94311 100644 --- a/worldmap-save.c +++ b/worldmap-save.c @@ -94,8 +94,8 @@ void writeMarkers(struct membuffer *b) if (dive->latitude.udeg == 0 && dive->longitude.udeg == 0) continue; - put_format(b, "temp = new google.maps.Marker({position: new google.maps.LatLng(%f,%f)});\n", - dive->latitude.udeg / 1000000.0, dive->longitude.udeg / 1000000.0); + put_degrees(b, dive->latitude, "temp = new google.maps.Marker({position: new google.maps.LatLng(", ""); + put_degrees(b, dive->longitude, ",", ")});\n"); put_string(b, "markers.push(temp);\ntempinfowindow = new google.maps.InfoWindow({content: '<div id=\"content\">'+'<div id=\"siteNotice\">'+'</div>'+'<div id=\"bodyContent\">"); put_HTML_date(b, dive); put_duration(b, dive->duration, "<p>duration=", " min</p>"); |