Permalink
Browse files

Merge pull request ezsystems#23 from dkondic/feature_google_maps_api_key

GoogleMaps API Key added for edit and view templates
  • Loading branch information...
andrerom committed Oct 23, 2018
2 parents 96cbe91 + 6911eaa commit af9920e5b849c75549e1b2ac7b2be937f81d1c9d
@@ -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 )
@@ -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 )
@@ -2,5 +2,6 @@
[GMapSettings]
UseSensor=false
ApiKey=
*/?>

0 comments on commit af9920e

Please sign in to comment.