Streetview PDF Print E-mail
Written by Mike Reumer   
Friday, 30 January 2009 02:00

It's possible to show Google's streetview (version => 2.12e).Keep in mind to set the lat/lon for a location where streetview is available. If streetview is not available then an error is shown.

{mosmap sv='top'|svyaw='137'|svpitch='-20'|centerlat='48.86026723714429'|centerlon='2.2913722693920135'|zoom='16'|svautorotate='1'}

streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon streetview icon

The possible parameters are:

  • sv - this is if streetview must show. It can be top, bottom or a name for an own defined div.
  • svwidth - the width of the streetview (greater then 250)
  • svheight - the height of the streetview (greater then 70)
  • svyaw - defines the rotation angle around the camera locus in degrees relative from true north. Yaw angles are measured clockwise (90 degrees is true east)
  • svpitch - defines the angle variance "up" or "down" from the camera's initial default pitch, which is often (but not always) flat horizontal. (For example, an image taken on a hill will likely exhibit a default pitch that is not horizontal.) Pitch angles are measured with negative values looking up (to -90 degrees straight up and orthogonal to the default pitch) and positive values looking down (to +90 degrees straight down and orthogonal to the default pitch).
  • svzoom - defines the zoom level of this view (effectively proscribing the "field of view") with 0 being fully zoomed-out. Different Street View locations may provide higher or lower zoom levels.
  • svautorotate - Switch on autorotate of the streetview (default off)

You can get the parameters out of maps.google.com when viewing streetview. Click on link and you will see the link to get the same view. At the end the parameter cbp defines the streetview parameters:

  • First value can be ignored.
  • Second value is svyaw
  • Third value can be ignored
  • Fourth value is svzoom
  • Fifth value is svpitch

Parameter cbll can be used for centerlat and centerlon.

Last Updated on Friday, 23 September 2011 19:45
 

Advertisement