Widget:Google Maps: Unterschied zwischen den Versionen

Aus ZUM-Unterrichten
(Die Seite wurde neu angelegt: „<noinclude>__NOTOC__ This widget allows you to add '''[https://code.google.com/apis/maps/ Google Maps]''' widget to your wiki page. Created by [https://www…“)
Markierung: 2017-Quelltext-Bearbeitung
 
KKeine Bearbeitungszusammenfassung
Markierung: 2017-Quelltext-Bearbeitung
Zeile 9: Zeile 9:
== Copy to your site ==
== Copy to your site ==
To use this widget on your site, just 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}}'''.
To use this widget on your site, just 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}}'''.
</noinclude><includeonly><!--{if not isset($static)}--><!--{counter name="mapDivID" assign="mapDivID"}--><script type="text/javascript" src="https://www.google.com/jsapi"></script>
</noinclude><includeonly>
<!-- API Key: AIzaSyAiZdt5XenJudNqZB85QN50e1Sr5Io9F8U -->
 
<script>
      function initMap() {
        var uluru = {lat: -25.363, lng: 131.044};
        var map = new google.maps.Map(document.getElementById('map'), {
          zoom: 4,
          center: uluru
        });
        var marker = new google.maps.Marker({
          position: uluru,
          map: map
        });
      }
    </script>
    <script async defer
    src="<nowiki>https://maps.googleapis.com/maps/api/js?key=</nowiki><var>AIzaSyAiZdt5XenJudNqZB85QN50e1Sr5Io9F8U</var>&callback=initMap">
    </script>
 
 
<!--{if not isset($static)}--><!--{counter name="mapDivID" assign="mapDivID"}-->
<script async defer
    src="<nowiki>https://maps.googleapis.com/maps/api/js?key=</nowiki><var>YOUR_API_KEY</var>&callback=initMap">
    </script>
<script type="text/javascript">
<script type="text/javascript">
google.load("maps", "2.s");
google.load("maps", "2.s");

Version vom 22. Januar 2018, 16:20 Uhr

This widget allows you to add Google Maps 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.

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page Widget:Google Maps.