Ero sivun ”Widget:Google Street View” versioiden välillä

WirmoWikistä
Siirry navigaatioonSiirry hakuun
Ei muokkausyhteenvetoa
Merkkaus: Palautettu
Ei muokkausyhteenvetoa
 
(14 välissä olevaa versiota samalta käyttäjältä ei näytetä)
Rivi 2: Rivi 2:
This widget lets you to add '''[http://maps.google.com/help/maps/streetview/ Google Street View]''' widget to your wiki page.
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.
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. JaH / Sivutuuli updated script 2026-02-03.


== Using this widget ==
== Using this widget ==
Rivi 12: Rivi 12:
== Requirement ==
== 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.  
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
</noinclude><includeonly><img
     width="<!--{$width|validate:int|escape:html|default:'600'}-->"
     width="<!--{$width|validate:int|escape:html|default:'600'}-->"
     height="<!--{$height|validate:int|escape:html|default:'450'}-->"
     height="<!--{$height|validate:int|escape:html|default:'450'}-->"
     src="https://www.google.com/maps/embed/v1/streetview?key='AIzaSyDTMiWnf9IEOuars7IFU-7IjPbUdaO7wYA'
     src="https://maps.googleapis.com/maps/api/streetview?size=<!--{$width|validate:int|escape:html|default:'600'}-->x<!--{$height|validate:int|escape:html|default:'450'}-->&key=AIzaSyBBMeBjqjGnZYVp0TbpbhXS8ShcOfIs4Uw&location=<!--{$lat|validate:float|escape:url|default:'52.520008'}-->,<!--{$lng|validate:float|escape:url|default:'13.404954'}-->
&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'}-->
&heading=<!--{$heading|validate:int|escape:url|default:'0'}-->
&pitch=<!--{$pitch|validate:int|escape:url|default:'0'}-->
&pitch=<!--{$pitch|validate:int|escape:url|default:'0'}-->
Rivi 25: Rivi 24:
     referrerpolicy="no-referrer-when-downgrade"
     referrerpolicy="no-referrer-when-downgrade"
     style="border: 0;"
     style="border: 0;"
></iframe></includeonly>
></includeonly>

Nykyinen versio 4. helmikuuta 2026 kello 11.52

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. JaH / Sivutuuli updated script 2026-02-03.

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.