1 /*global foodev, eniro*/
  2 eniro.Package('maps');
  3 
  4 /**
  5  * @requires eniro/maps/Srs.js
  6  * @requires eniro/maps/Coordinate.js
  7  */
  8 eniro.maps.Class('LatLng', /** @lends eniro.maps.LatLng.prototype */ {
  9 
 10     Extends: eniro.maps.Coordinate,
 11 
 12     /**
 13      * A coordinate of type WGS84.
 14      *
 15      * <p>
 16      * Class is considered a value type.
 17      *
 18      * @param {number}
 19      *            lat The latitude (north-south) value.
 20      * @param {number}
 21      *            lng The longitude (east-west) value.
 22      * @constructs
 23      * @extends eniro.maps.Coordinate
 24      */
 25     initialize: function (lat, lng) {
 26         eniro.maps.Coordinate.prototype.initialize.apply(this, [
 27             lng, lat, eniro.maps.Srs.WGS84
 28         ]);
 29     },
 30 
 31     /**
 32      * Same as getY().
 33      *
 34      * @return the latitude (north-south).
 35      */
 36     getLat: function () {
 37         return this.getY();
 38     },
 39 
 40     /**
 41      * Same as getX().
 42      *
 43      * @return the longitude (east-west).
 44      */
 45     getLng: function () {
 46         return this.getX();
 47     }
 48 
 49 });
 50 
 51 eniro.maps.LatLng.prototype.toString = function () {
 52     return this.getClassName() + '(' + this.getLat() + ',' + this.getLng() + ')';
 53 };
 54 
 55 /**
 56  * <i>Same as {@link eniro.maps.LatLng#getLat} to be Google compatible.</i>
 57  *
 58  * @function
 59  * @private
 60  */
 61 eniro.maps.LatLng.prototype.lat = eniro.maps.LatLng.prototype.getLat;
 62 
 63 /**
 64  * <i>Same as {@link eniro.maps.LatLng#getLng} to be Google compatible.</i>
 65  *
 66  * @function
 67  * @private
 68  */
 69 eniro.maps.LatLng.prototype.lng = eniro.maps.LatLng.prototype.getLng;
 70