Widget:Google Street View: Unterschied zwischen den Versionen
Aus Hist. Verein Herne / Wanne-Eickel
(chg) |
(add) |
||
Zeile 19: | Zeile 19: | ||
* '''lng''' - longitude of street view location | * '''lng''' - longitude of street view location | ||
* '''height''' and '''width''' define view dimensions. Defaults: width=600; height=450 | * '''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. Values between 0 and 360 are permissible. Examples: | ||
* '''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: The camera faces North. | ||
**"90" degrees: The camera faces East. | |||
**"180" degrees: The camera faces South. | |||
**"270" degrees: The camera faces West. | |||
* '''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. Values between -90 and 90 are permissible. Examples: | |||
**"0" degrees (default): The camera looks straight ahead, parallel to the ground. | **"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 upward, showing higher parts of the scene. | ||
**"-45" degrees: The camera tilts downward, displaying lower parts of the scene. | **"-45" degrees: The camera tilts downward, displaying lower parts of the scene. | ||
* '''fov''' - field of view | * '''fov''' - defines the field of view or the extent of the scene that the camera can capture in a single view. It determines how wide or narrow the camera's perspective is. Values between 30 and 120 are permissible. Examples: | ||
**"30" degrees: A narrow field of view, focusing on a specific area or object. | |||
**"90" degrees (default): A moderate field of view, capturing a balanced view of the surroundings. | |||
**"120" degrees: A wide field of view, providing a broad perspective of the scene. | |||
</noinclude><includeonly><iframe | </noinclude><includeonly><iframe | ||
src="//www.google.com/maps/embed/v1/streetview?key=AIzaSyC5R86btT-DazqkCZzCwBgG4D3zWny3Em8&location=<!--{$lat|default:'51.5379182'}-->,<!--{$lng|default:'7.2198481'}-->&heading=<!--{$heading|default:'0'}-->&pitch=<!--{$pitch|default:'0'}-->&fov=<!--{$fov|default:'90'}-->" | src="//www.google.com/maps/embed/v1/streetview?key=AIzaSyC5R86btT-DazqkCZzCwBgG4D3zWny3Em8&location=<!--{$lat|default:'51.5379182'}-->,<!--{$lng|default:'7.2198481'}-->&heading=<!--{$heading|default:'0'}-->&pitch=<!--{$pitch|default:'0'}-->&fov=<!--{$fov|default:'90'}-->" |
Version vom 4. Dezember 2023, 18:35 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 |heading=370.64659986187695 |pitch=-20 |fov=120 }}
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. Values between 0 and 360 are permissible. Examples:
- "0" degrees: The camera faces North.
- "90" degrees: The camera faces East.
- "180" degrees: The camera faces South.
- "270" degrees: The camera faces West.
- 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. Values between -90 and 90 are permissible. Examples:
- "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 - defines the field of view or the extent of the scene that the camera can capture in a single view. It determines how wide or narrow the camera's perspective is. Values between 30 and 120 are permissible. Examples:
- "30" degrees: A narrow field of view, focusing on a specific area or object.
- "90" degrees (default): A moderate field of view, capturing a balanced view of the surroundings.
- "120" degrees: A wide field of view, providing a broad perspective of the scene.