Added configurable google maps key

This commit is contained in:
Tobias Mädel 2018-11-05 11:56:55 +01:00
parent 5523f9388a
commit 80f8c3f158
5 changed files with 23 additions and 3 deletions

View File

@ -33,6 +33,16 @@ $config['table_name'] = "TABLE_HRD_CONTACTS_V01";
$config['locator'] = "";
$config['display_freq'] = true;
/*
|--------------------------------------------------------------------------
| Google Maps JavaScript API Key
|--------------------------------------------------------------------------
| visit https://developers.google.com/maps/documentation/javascript/get-api-key
|
| 'gmaps_api_key' API key from Google Cloud Plattform
*/
$config['gmaps_api_key'] = "";
/*
|--------------------------------------------------------------------------
| Authentication

View File

@ -10,7 +10,7 @@
<script type="text/javascript" src="<?php echo base_url(); ?>js/bootstrap-dropdown.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/bootstrap-tabs.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/global.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=<?php echo $this->config->item('gmaps_api_key');?>"></script>
<!-- CSS Files -->
<link type="text/css" href="<?php echo base_url(); ?>css/flick/jquery-ui-1.8.12.custom.css" rel="stylesheet" />

View File

@ -10,7 +10,7 @@
<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-ui-1.8.12.custom.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/global.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=<?php echo $this->config->item('gmaps_api_key');?>"></script>
</head>

View File

@ -19,7 +19,7 @@ line-height: 1.7;
margin: 10px 0;
}
</style>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false&key=<?php echo $this->config->item('gmaps_api_key');?>"></script>
</head>
<body onload="initialize()">

View File

@ -32,6 +32,16 @@ $config['table_name'] = "TABLE_HRD_CONTACTS_V01";
$config['locator'] = "%baselocator%";
$config['display_freq'] = false;
/*
|--------------------------------------------------------------------------
| Google Maps JavaScript API Key
|--------------------------------------------------------------------------
| visit https://developers.google.com/maps/documentation/javascript/get-api-key
|
| 'gmaps_api_key' API key from Google Cloud Plattform
*/
$config['gmaps_api_key'] = "";
/*
|--------------------------------------------------------------------------
| Authentication