Index: trunk/extensions/Maps/Maps_Settings.php |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | |
112 | 112 | # Boolean. Indicates if coordinates should be outputted in directional notation by default. |
113 | 113 | # Recommended to be true for Maps_COORDS_DMS and false for Maps_COORDS_FLOAT. |
114 | | -$egMapsCoordinateDirectional = false; |
| 114 | +$egMapsCoordinateDirectional = true; |
115 | 115 | |
116 | 116 | # Boolean. |
117 | 117 | $egMapsAllowCoordsGeocoding = true; |
Index: trunk/extensions/Maps/Maps_CoordinateParser.php |
— | — | @@ -377,10 +377,10 @@ |
378 | 378 | * @param boolean $isLat Should be true for latitudes and false for longitudes. |
379 | 379 | * |
380 | 380 | * @return string |
381 | | - * |
382 | | - * FIXME: Notice: Undefined variable: mI18nDirections in ...\Maps\Maps_CoordinateParser.php on line 388 |
383 | 381 | */ |
384 | 382 | private static function setDirectionalAngle( $coordinate, $isLat ) { |
| 383 | + self::initializeDirectionLabels(); |
| 384 | + |
385 | 385 | $isNegative = substr( $coordinate, 0, 1 ) == '-'; |
386 | 386 | if ( $isNegative ) $coordinate = substr( $coordinate, 1 ); |
387 | 387 | |
— | — | @@ -389,7 +389,7 @@ |
390 | 390 | } else { |
391 | 391 | $directionChar = self::$mI18nDirections[ $isNegative ? 'W' : 'E' ]; |
392 | 392 | } |
393 | | - |
| 393 | + |
394 | 394 | return $coordinate . ' ' . $directionChar; |
395 | 395 | } |
396 | 396 | |