OSDN Git Service

add missing url variable handling
authorishikawa <ishikawa@180c8125-5b33-4295-ad04-72a68a15b4cc>
Tue, 26 Jan 2010 12:25:29 +0000 (12:25 +0000)
committerishikawa <ishikawa@180c8125-5b33-4295-ad04-72a68a15b4cc>
Tue, 26 Jan 2010 12:25:29 +0000 (12:25 +0000)
lib/public/geopost-keitairc.js

index 0e38661..988bf11 100644 (file)
@@ -1,6 +1,6 @@
 /*
  -*- mode: javascript; coding: utf-8 -*-
- $Id: geopost-keitairc.js,v 1.6 2010-01-26 11:55:28 ishikawa Exp $
+ $Id: geopost-keitairc.js,v 1.7 2010-01-26 12:25:29 ishikawa Exp $
 
  Copyright (c) 2009 ISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
  This program is covered by the GNU General Public License 2
@@ -45,6 +45,8 @@ addEventListener("load", function(event) {
                                }
 
                                keitairc_location = '現在位置: L:'+ Address;
+                               keitairc_map_url = '現在位置: http://maps.google.com/maps?ll=' + position.coords.latitude + ',' + position.coords.longitude + '&q=' + encodeURI(Address) + '&z=15';
+
                                var msg;
                                msg = '<span style="font-size:80%">';
                                msg += '<strong>現在の場所:</strong><br />';