From 9b5a02f7f8adb2d53637a968e830481ca3b57310 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 20 May 2011 13:07:17 +0200 Subject: [PATCH] Do not give latitude and longitude as arguments as they are always the same. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- htdocs/javascript/maps.js | 4 ++-- modules/geoloc.php | 3 --- templates/geoloc/index.tpl | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/htdocs/javascript/maps.js b/htdocs/javascript/maps.js index a55c3e6..db3020d 100644 --- a/htdocs/javascript/maps.js +++ b/htdocs/javascript/maps.js @@ -21,9 +21,9 @@ // http://code.google.com/apis/maps/documentation/javascript/ // http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries -function map_initialize(latitude, longitude) +function map_initialize() { - var latlng = new google.maps.LatLng(latitude, longitude); + var latlng = new google.maps.LatLng(0, 0); var myOptions = { zoom: 1, center: latlng, diff --git a/modules/geoloc.php b/modules/geoloc.php index d7d7b77..15faaef 100644 --- a/modules/geoloc.php +++ b/modules/geoloc.php @@ -39,9 +39,6 @@ class GeolocModule extends PLModule $page->addJsLink('markerclusterer_packed.js'); $page->addJsLink('markerwithlabel_packed.js'); $page->assign('pl_extra_header', ''); - - $page->assign('latitude', 0); - $page->assign('longitude', 0); } function handler_map_ajax($page) diff --git a/templates/geoloc/index.tpl b/templates/geoloc/index.tpl index a71228a..068c87f 100644 --- a/templates/geoloc/index.tpl +++ b/templates/geoloc/index.tpl @@ -23,7 +23,7 @@
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} -- 2.1.4