Ero sivun ”Widget:Google Street View” versioiden välillä
WirmoWikistä
Siirry navigaatioonSiirry hakuun
(Ak: Uusi sivu: <noinclude>__NOTOC__ This widget allows you to add '''[http://maps.google.com/help/maps/streetview/ Google Street View]''' widget to your wiki page. Created by [http://www.mediawi...) |
Ei muokkausyhteenvetoa |
||
| Rivi 1: | Rivi 1: | ||
<noinclude>__NOTOC__ | <noinclude>__NOTOC__ | ||
This widget | This widget lets 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 == | ||
For information on how to use this widget, see [ | For information on how to use this widget, see [https://www.mediawikiwidgets.org/Google_Street_View widget description page on MediaWikiWidgets.org]. | ||
== Copy to your site == | == Copy to your site == | ||
To use this widget on your site, | To use this widget on your site, install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''. | ||
== Requirement == | |||
For this widget to work, you must obtain an API key from Google Maps. See the [https://developers.google.com/maps/documentation/streetview/get-api-key?hl=en documentation on Street View Static API] on how to obtain one. Once retrieved, you must replace <code>YOUR_API_KEY</code> in the copied code on your wiki with your API key. | |||
</noinclude><includeonly><iframe | |||
width="<!--{$width|validate:int|escape:html|default:'600'}-->" | |||
height="<!--{$height|validate:int|escape:html|default:'450'}-->" | |||
src="https://www.google.com/maps/embed/v1/streetview?key=YOUR_API_KEY | |||
&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'}-->" | |||
sandbox="allow-scripts allow-same-origin allow-fullscreen" | |||
loading="lazy" | |||
allowfullscreen | |||
referrerpolicy="no-referrer-when-downgrade" | |||
style="border: 0;" | |||
></iframe></includeonly> | |||
Versio 3. helmikuuta 2026 kello 20.13
This widget lets 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.
Copy to your site
To use this widget on your site, install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page Widget:Google Street View.
Requirement
For this widget to work, you must obtain an API key from Google Maps. See the documentation on Street View Static API on how to obtain one. Once retrieved, you must replace YOUR_API_KEY in the copied code on your wiki with your API key.