Widget:Google Street View: Unterschied zwischen den Versionen
Aus Hist. Verein Herne / Wanne-Eickel
(chg) |
(Verbesserung der Widgetsicherheit) |
||
(8 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 2: | Zeile 2: | ||
This widget allows you to add '''[http://maps.google.com/help/maps/streetview/ Google Street View]''' widget to your wiki page. | This widget allows you to add '''[http://maps.google.com/help/maps/streetview/ Google Street View]''' widget to your wiki page. | ||
It was created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev] in 2011 and updated by [https://professional.wiki Karsten Hoffmeyer] for [https://www.pro.wiki ProWiki] in 2023. | |||
== Using this widget == | == Using this widget == | ||
Zeile 8: | Zeile 8: | ||
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> | <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> | ||
|lat= | |lat=52.520008 | ||
|lng= | |lng=13.404954 | ||
|heading= | |heading=180 | ||
|pitch= | |pitch=10 | ||
|fov= | |fov=100 | ||
}}</nowiki> | }}</nowiki> | ||
Zeile 24: | Zeile 24: | ||
**"180" degrees: The camera faces South. | **"180" degrees: The camera faces South. | ||
**"270" degrees: The camera faces West. | **"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: | * '''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''' - defines the field of view or the extent of the scene | * '''fov''' - defines the field of view or the extent of the scene 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 but may not work in all cases. Examples: | ||
**"30" degrees: A narrow field | **"30" degrees: A narrow field focusing on a specific area or object. | ||
**"90" degrees (default): A moderate field of view, capturing a balanced view of the surroundings. | **"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 | **"120" degrees: A wide field of view, providing a broad scene perspective. | ||
</noinclude><includeonly><iframe | </noinclude><includeonly><iframe | ||
src="//www.google.com/maps/embed/v1/streetview?key=AIzaSyC5R86btT-DazqkCZzCwBgG4D3zWny3Em8&location=<!--{$lat|default:' | src="https://www.google.com/maps/embed/v1/streetview?key=AIzaSyC5R86btT-DazqkCZzCwBgG4D3zWny3Em8&location=<!--{$lat|validate:float|escape:url|default:'52.520008'}-->,<!--{$lng|validate:float|escape:url|default:'13.404954'}-->&heading=<!--{$heading|validate:int|escape:url|default:'0'}-->&pitch=<!--{$pitch|validate:int|escape:url|default:'0'}-->&fov=<!--{$fov|validate:int|escape:url|default:'90'}-->" | ||
width="<!--{$width|default:' | width="<!--{$width|validate:int|escape:html|default:'400'}-->" | ||
height="<!--{$height|default:' | height="<!--{$height|validate:int|escape:html|default:'400'}-->" | ||
style="border:0;" | style="border: 0;" | ||
allowfullscreen="" | allowfullscreen="" | ||
loading="lazy" | loading="lazy" | ||
referrerpolicy="no-referrer-when-downgrade"> | referrerpolicy="no-referrer-when-downgrade"> | ||
</iframe></includeonly> | </iframe></includeonly> |
Aktuelle Version vom 18. Mai 2024, 17:12 Uhr
This widget allows you to add Google Street View widget to your wiki page.
It was created by Sergey Chernyshev in 2011 and updated by Karsten Hoffmeyer for ProWiki in 2023.
Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.
{{#widget:Google Street View |lat=52.520008 |lng=13.404954 |heading=180 |pitch=10 |fov=100 }}
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 (default): 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 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 but may not work in all cases. Examples:
- "30" degrees: A narrow field 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 scene perspective.