Skip to content

Commit

Permalink
GoogleMaps API Key added for edit and view templates
Browse files Browse the repository at this point in the history
(cherry-picked from: c558c62, 6911eaa)
  • Loading branch information
andrerom committed Oct 23, 2018
1 parent d2c57ef commit ecd24ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div class="element">
{run-once}
<script type="text/javascript" src="//maps.google.com/maps/api/js?sensor={ezini('GMapSettings', 'UseSensor', 'ezgmaplocation.ini')}"></script>
<script type="text/javascript" src="//maps.google.com/maps/api/js?key={ezini('GMapSettings', 'ApiKey', 'ezgmaplocation.ini')}&sensor={ezini('GMapSettings', 'UseSensor', 'ezgmaplocation.ini')}"></script>
<script type="text/javascript">
{literal}
function eZGmapLocation_MapControl( attributeId, latLongAttributeBase )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{def $latitude = $attribute.content.latitude|explode(',')|implode('.')
$longitude = $attribute.content.longitude|explode(',')|implode('.')}
{run-once}
<script type="text/javascript" src="//maps.google.com/maps/api/js?sensor={ezini('GMapSettings', 'UseSensor', 'ezgmaplocation.ini')}"></script>
<script type="text/javascript" src="//maps.google.com/maps/api/js?key={ezini('GMapSettings', 'ApiKey', 'ezgmaplocation.ini')}&sensor={ezini('GMapSettings', 'UseSensor', 'ezgmaplocation.ini')}"></script>
<script type="text/javascript">
{literal}
function eZGmapLocation_MapView( attributeId, latitude, longitude )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
[GMapSettings]
UseSensor=false
ApiKey=
*/?>

0 comments on commit ecd24ad

Please sign in to comment.