|
Mapstraction | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--LatLonPoint
Defined in mapstraction.js
| Field Summary | |
Object |
lat
|
Object |
lng
|
Object |
lon
|
| Constructor Summary | |
LatLonPoint(<double> lat, <double> lon)
LatLonPoint is a point containing a latitude and longitude with helper methods |
|
| Method Summary | |
double
|
distance(<LatLonPoint> otherPoint)
distance returns the distance in kilometers between two points |
boolean
|
equals(<LatLonPoint> otherPoint)
equals tests if this point is the same as some other one |
void
|
fromGoogle(<Object> googlePoint)
Sets a point based on a google point |
Object
|
fromOpenLayers()
fromOpenLayers converts an OpenLayers point to Mapstraction LatLonPoint Does a conversion from projectect coordinates to Latitude/Longitude |
void
|
fromOpenSpace(osPoint)
fromOpenSpace given an OpenSpace.MapPoint returns a new Mapstraction LatLonPoint |
Float
|
latConv()
Returns latitude conversion based on current projection |
Float
|
lonConv()
Returns longitude conversion based on current projection |
Object
|
toFreeEarth()
toFreeEarth returns a FreeEarth point |
Object
|
toGoogle()
toGoogle returns a Google maps point |
Object
|
toMap24()
toMap24 returns a Map24 point |
Object
|
toMapQuest()
toMapQuest returns a MapQuest point |
Object
|
toMicrosoft()
toMicrosoft returns a VE maps point |
Object
|
toMultiMap()
toMultiMap returns a MultiMap point |
Object
|
toOpenLayers()
toOpenLayers returns an OpenLayers point Does a conversion from Latitude/Longitude to projected coordinates |
Object
|
toOpenSpace()
toOpenSpace returns an OpenSpace point |
String
|
toString()
toString returns a string represntation of a point |
Object
|
toViaMichelin()
toViaMichelin returns a ViaMichelin point |
Object
|
toYahoo()
toYahoo returns a Y! |
| Field Detail |
Object lat
Object lng
Object lon
| Constructor Detail |
LatLonPoint(<double> lat, <double> lon)
lat - is the latitude
lon - is the longitude
| Method Detail |
double distance(<LatLonPoint> otherPoint)
otherPoint - The other point to measure the distance from to this one
boolean equals(<LatLonPoint> otherPoint)
otherPoint - The other point to test with
void fromGoogle(<Object> googlePoint)
googlePoint -
Object fromOpenLayers()
void fromOpenSpace(osPoint)
point - to convert
Float latConv()
Float lonConv()
Object toFreeEarth()
Object toGoogle()
Object toMap24()
Object toMapQuest()
Object toMicrosoft()
Object toMultiMap()
Object toOpenLayers()
Object toOpenSpace()
String toString()
Object toViaMichelin()
Object toYahoo()
|
Mapstraction | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||