From: Stéphane Jacob Date: Fri, 20 May 2011 11:07:17 +0000 (+0200) Subject: Do not give latitude and longitude as arguments as they are always the same. X-Git-Tag: xorg/1.1.2~62^2~4 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9b5a02f7f8adb2d53637a968e830481ca3b57310;p=platal.git Do not give latitude and longitude as arguments as they are always the same. Signed-off-by: Stéphane Jacob --- 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: *}