|
Poly9 FreeEarth | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--FE.Camera
Defined in freeearth.js
See:
| Constructor Summary | |
FE.Camera(map)
Camera class. |
|
| Method Summary | |
Object
|
getAltitude()
Returns the current camera altitude, in meters above the mean sea level. |
Number
|
getHeading()
Returns the current camera heading, in degrees. |
FE.LatLng
|
getTargetLatLng()
Returns the current camera target. |
Number
|
getTilt()
Returns the current camera tilt angle, in degrees. |
void
|
headTo(<Number> heading, <Number> time, <String> transition)
Rolls the camera using a transition effect. |
void
|
panTo(ll, time, transition)
Pans the camera using a transition effect. |
void
|
setAltitude(<Number> altitude)
Sets the camera altitude. |
void
|
setHeading(<Number> heading)
Sets the camera heading. |
void
|
setMaxAltitude(alt)
Maximum altitude the camera can zoom out. |
void
|
setTargetLatLng(<FE.LatLng> ll)
Sets the camera target coordinate. |
void
|
setTilt(<Number> tilt)
Sets the camera tilt. |
void
|
tiltTo(<Number> tilt, <Number> time, <String> transition)
Tilts the camera using a transition effect. |
void
|
zoomTo(altitude, time, transition)
Zooms the camera using a transition effect. |
| Constructor Detail |
FE.Camera(map)
| Method Detail |
Object getAltitude()
Number getHeading()
FE.LatLng getTargetLatLng()
Number getTilt()
void headTo(<Number> heading, <Number> time, <String> transition)
heading - Angle to which the camera will be headed, in degrees.
time - Transition effect duration, in seconds. Defaults to 1.
transition - Transition effect to be used. See Robert Penner's website. Defaults to 'easenone'.
void panTo(ll, time, transition)
void setAltitude(<Number> altitude)
altitude - Altitude, in meters above the mean sea level.
void setHeading(<Number> heading)
heading - Angle to which the camera will be headed, in degrees.
void setMaxAltitude(alt)
void setTargetLatLng(<FE.LatLng> ll)
ll - Coordinate on which center the camera.
void setTilt(<Number> tilt)
tilt - Angle, in degrees.
void tiltTo(<Number> tilt, <Number> time, <String> transition)
tilt - Angle to which the camera will be tilted, in degrees.
time - Transition effect duration, in seconds. Defaults to 1.
transition - Transition effect to be used. See Robert Penner's website. Defaults to 'easenone'.
void zoomTo(altitude, time, transition)
|
Poly9 FreeEarth | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||