Widget:Google Maps: Unterschied zwischen den Versionen

Aus ZUM-Unterrichten
KKeine Bearbeitungszusammenfassung
Markierung: 2017-Quelltext-Bearbeitung
KKeine Bearbeitungszusammenfassung
Markierung: 2017-Quelltext-Bearbeitung
Zeile 1: Zeile 1:
<noinclude>__NOTOC__
<noinclude>__NOTOC__
<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>
This widget allows you to add '''[https://code.google.com/apis/maps/ Google Maps]''' widget to your wiki page.
This widget allows you to add '''[https://code.google.com/apis/maps/ Google Maps]''' widget to your wiki page.


Zeile 11: Zeile 28:
</noinclude><includeonly>
</noinclude><includeonly>
<!-- API Key: AIzaSyAiZdt5XenJudNqZB85QN50e1Sr5Io9F8U -->
<!-- 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"}-->
<!--{if not isset($static)}--><!--{counter name="mapDivID" assign="mapDivID"}-->

Version vom 22. Januar 2018, 16:20 Uhr

<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="https://maps.googleapis.com/maps/api/js?key=AIzaSyAiZdt5XenJudNqZB85QN50e1Sr5Io9F8U&callback=initMap">
    </script>

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.