Widget:Google Map: Difference between revisions

From Ludlow Family Wiki
Jump to navigation Jump to search
m (Dan Smith moved page Widget:Google Map Place to Widget:Google Map without leaving a redirect)
No edit summary
Line 1: Line 1:
<noinclude>Display a place in a Google Map via the [https://developers.google.com/maps/documentation/embed/guide Embed API].
<noinclude>Display a Google Map via the [https://developers.google.com/maps/documentation/embed/guide Embed API].
* ''place'': Place to display
* ''place'': Place to display; default is no highlighted place
* ''width'': Width of iframe
* ''center'': Coordinates of center (e.g., -33.8569,151.2152); default is computed from place
* ''height'': Height of iframe
* ''zoom'': Zoom level; default is computed from place
* ''zoom'': Zoom level (optional)
* ''width'': Width of iframe; default is 400
* ''height'': Height of iframe; default is 300
</noinclude><includeonly><iframe
</noinclude><includeonly><iframe
   width='<!--{$width|escape:'quotes'|default:'400'}-->'
   width='<!--{$width|escape:'quotes'|default:'400'}-->'
   height='<!--{$height|escape:'quotes'|default:'300'}-->'
   height='<!--{$height|escape:'quotes'|default:'300'}-->'
 
   frameborder="0" style="border:0"
   frameborder="0" style="border:0"
   src="https://www.google.com/maps/embed/v1/place?key=AIzaSyAIWDKY-pMzKZETUQiFJQq3Oeqi2OkL0hY
   src="https://www.google.com/maps/embed/v1<!--{if isset($place)}/place{else}/view{/if}-->
     &q=<!--{$place|escape:'url'}-->
    ?key=AIzaSyAIWDKY-pMzKZETUQiFJQq3Oeqi2OkL0hY
     <!--{if isset($zoom)}-->&zoom=<!--{$zoom|escape:'url'}--><!--{/if}-->">
     <!--{if isset($place)}&q={$place|escape:'url'}{/if}-->
</iframe></includeonly>
     <!--{if isset($center)}&center={$center|escape:'url'}{/if}-->"
    <!--{if isset($zoom)}&zoom={$zoom|escape:'url'}{/if}-->"
></iframe></includeonly>

Revision as of 00:13, 20 June 2015

Display a Google Map via the Embed API.

  • place: Place to display; default is no highlighted place
  • center: Coordinates of center (e.g., -33.8569,151.2152); default is computed from place
  • zoom: Zoom level; default is computed from place
  • width: Width of iframe; default is 400
  • height: Height of iframe; default is 300