This class represents an eastings and northings pair of coordinates in British National Grid (BNG) format
| OpenSpace. | This class represents an eastings and northings pair of coordinates in British National Grid (BNG) format |
| Properties | |
| srs | {Integer} The spatial reference system |
| Constructor | |
| OpenSpace. | Create a new map location with an optional spatial reference system. |
| Functions | |
| getEasting | {Float} The x-axis easting coodinate in metres |
| getNorthing | {Float} The y-axis northing coodinate in metres |
| toString | Return a readable string version of the map point |
| toCoordString | Return a readable string version of the map point |
| clone | {OpenSpace.MapPoint} New OpenSpace.MapPoint object with the same eastings and northings values |
| add | |
| equals | |
| fromString | Alternative constructor that builds a new OpenSpace.MapPoint from a parameter string |
clone: function()
{OpenSpace.MapPoint} New OpenSpace.MapPoint object with the same eastings and northings values
add: function( eastings, northings )
| eastings | {Float} |
| northings | {Float} |
{OpenSpace.MapPoint} A new OpenSpace.MapPoint object with the rastings and northings passed-in values added to this’s.
equals:function( ll )
| ll | {OpenSpace.MapPoint} |
{Boolean} Boolean value indicating whether the passed-in OpenSpace.MapPoint object has the same eastings and northings components as this. Note: if ll passed in is null, returns false
OpenSpace.MapPoint.fromString = function( str )
Alternative constructor that builds a new OpenSpace.MapPoint from a parameter string
| str | {String} Comma-separated Eastings,Northings coordinate string. (ex. <i>”512300,403400”</i>) |
{OpenSpace.MapPoint} New OpenSpace.MapPoint object built from the passed-in String.
{Float} The x-axis easting coodinate in metres
getEasting: function()
{Float} The y-axis northing coodinate in metres
getNorthing: function()
Return a readable string version of the map point
toString: function()
Return a readable string version of the map point
toCoordString: function()
{OpenSpace.MapPoint} New OpenSpace.MapPoint object with the same eastings and northings values
clone: function()
add: function( eastings, northings )
equals:function( ll )
Alternative constructor that builds a new OpenSpace.MapPoint from a parameter string
OpenSpace.MapPoint.fromString = function( str )