Widget:Google Street View: Unterschied zwischen den Versionen

Aus Hist. Verein Herne / Wanne-Eickel
(änd)
(chg)
Zeile 18: Zeile 18:
* '''lat''' - lattitude of street view location
* '''lat''' - lattitude of street view location
* '''lng''' - longitude of street view location
* '''lng''' - longitude of street view location
* '''height''' and '''width''' define view dimensions. Defaults: width=420; height=350
* '''height''' and '''width''' define view dimensions. Defaults: width=600; height=450
* '''heading''' - defines the horizontal angle between the camera's line of sight and the North direction, with 0 degrees pointing North.
* '''heading''' - defines the horizontal angle between the camera's line of sight and the North direction, with 0 degrees pointing North.
* '''pitch''' - 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). And for some reason, for static maps, this value must be negated, e.g. negative values look down and positive look up (don't ask me why the discrepancy).
* '''pitch''' - defines the angle variance "up" or "down" from the camera's initial default pitch allowing you to control whether the camera looks up, straight ahead, or down.
**"0" degrees (default): The camera looks straight ahead, parallel to the ground.
**"45" degrees: The camera tilts upward, showing higher parts of the scene.
**"-45" degrees: The camera tilts downward, displaying lower parts of the scene.
* '''fov''' - field of view, similar to zoom, but expressed in degrees for a field of view, default is 90 and maximum is 120. Works '''only for static''' street views - for interactive use '''zoom''' parameter instead.
* '''fov''' - field of view, similar to zoom, but expressed in degrees for a field of view, default is 90 and maximum is 120. Works '''only for static''' street views - for interactive use '''zoom''' parameter instead.



Version vom 4. Dezember 2023, 18:29 Uhr

This widget allows you to add Google Street View widget to your wiki page.

Created by Sergey Chernyshev

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

{{#widget:Google Street View
|lat=40.758153
|lng=-73.985355
|yaw=370.64659986187695
|pitch=-20
|zoom=0
}}

Parameters

  • lat - lattitude of street view location
  • lng - longitude of street view location
  • height and width define view dimensions. Defaults: width=600; height=450
  • heading - defines the horizontal angle between the camera's line of sight and the North direction, with 0 degrees pointing North.
  • pitch - defines the angle variance "up" or "down" from the camera's initial default pitch allowing you to control whether the camera looks up, straight ahead, or down.
    • "0" degrees (default): The camera looks straight ahead, parallel to the ground.
    • "45" degrees: The camera tilts upward, showing higher parts of the scene.
    • "-45" degrees: The camera tilts downward, displaying lower parts of the scene.
  • fov - field of view, similar to zoom, but expressed in degrees for a field of view, default is 90 and maximum is 120. Works only for static street views - for interactive use zoom parameter instead.