r38258 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38257‎ | r38258 | r38259 >
Date:21:37, 30 July 2008
Author:yaron
Status:old
Tags:
Comment:
Fixed error in setting zoom - longitude goes from -180 to 180, not -90 to 90
Modified paths:
  • /trunk/extensions/SemanticGoogleMaps/SGM_QueryPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticGoogleMaps/SGM_QueryPrinter.php
@@ -109,8 +109,8 @@
110110 // the correct zoom level for the map
111111 $min_lat = 90;
112112 $max_lat = -90;
113 - $min_lon = 90;
114 - $max_lon = -90;
 113+ $min_lon = 180;
 114+ $max_lon = -180;
115115 foreach ($locations as $i => $location) {
116116 list($lat, $lon) = $location;
117117 if ($lat < $min_lat) {$min_lat = $lat; }

Status & tagging log