Widget:Google Street View: Unterschied zwischen den Versionen
Aus Hist. Verein Herne / Wanne-Eickel
KKeine Bearbeitungszusammenfassung |
(änd) |
||
Zeile 19: | Zeile 19: | ||
* '''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=420; height=350 | ||
* ''' | * '''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, 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). | ||
* '''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. | ||
</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'}-->" | |||
width="<!--{$width|default:'600'}-->" | |||
</noinclude><includeonly>< | height="<!--{$height|default:'450'}-->" | ||
style="border:0;" | |||
allowfullscreen="" | |||
loading="lazy" | |||
referrerpolicy="no-referrer-when-downgrade"> | |||
</iframe></includeonly> | |||
Version vom 4. Dezember 2023, 18:26 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=420; height=350
- 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).
- 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.