FBI-2511 [GeoMap mobile field] Google Maps shows "For development purposes only"
This commit is contained in:
@@ -1023,6 +1023,7 @@ class PmDynaform
|
||||
var isRTL = \"" . $this->isRTL . "\";
|
||||
var pathRTLCss = \"" . $this->pathRTLCss . "\";
|
||||
var delIndex = " . (isset($this->fields["DEL_INDEX"]) ? $this->fields["DEL_INDEX"] : "0") . ";
|
||||
" . $this->getTheStringVariableForGoogleMaps() . "\n
|
||||
$(window).load(function ()
|
||||
{
|
||||
var data = jsondata;
|
||||
@@ -1086,6 +1087,7 @@ class PmDynaform
|
||||
"var pathRTLCss = '" . $this->pathRTLCss . "';\n" .
|
||||
"var delIndex = " . (isset($this->fields["DEL_INDEX"]) ? $this->fields["DEL_INDEX"] : "0") . ";\n" .
|
||||
"var leaveCaseWarning = " . $this->getLeaveCaseWarning() . ";\n" .
|
||||
$this->getTheStringVariableForGoogleMaps() . "\n" .
|
||||
"$(window).load(function () {\n" .
|
||||
" var data = jsondata;\n" .
|
||||
" window.dynaform = new PMDynaform.core.Project({\n" .
|
||||
@@ -1169,6 +1171,7 @@ class PmDynaform
|
||||
"var pathRTLCss = '" . $this->pathRTLCss . "';\n" .
|
||||
"var delIndex = " . (isset($this->fields["DEL_INDEX"]) ? $this->fields["DEL_INDEX"] : "0") . ";\n" .
|
||||
"var leaveCaseWarning = " . $this->getLeaveCaseWarning() . ";\n" .
|
||||
$this->getTheStringVariableForGoogleMaps() . "\n" .
|
||||
"</script>\n" .
|
||||
"<script type='text/javascript' src='/jscore/cases/core/cases_Step.js'></script>\n" .
|
||||
"<script type='text/javascript' src='/jscore/cases/core/pmDynaform.js'></script>\n" .
|
||||
@@ -1226,6 +1229,7 @@ class PmDynaform
|
||||
var pathRTLCss = \"" . $this->pathRTLCss . "\";
|
||||
var delIndex = " . (isset($this->fields["DEL_INDEX"]) ? $this->fields["DEL_INDEX"] : "0") . ";
|
||||
var leaveCaseWarning = " . $this->getLeaveCaseWarning() . ";
|
||||
" . $this->getTheStringVariableForGoogleMaps() . "
|
||||
</script>
|
||||
|
||||
<script type=\"text/javascript\" src=\"/jscore/cases/core/pmDynaform.js\"></script>
|
||||
@@ -1270,6 +1274,7 @@ class PmDynaform
|
||||
"var pathRTLCss = '" . $this->pathRTLCss . "';\n" .
|
||||
"var delIndex = " . (isset($this->fields["DEL_INDEX"]) ? $this->fields["DEL_INDEX"] : "0") . ";\n" .
|
||||
"var leaveCaseWarning = " . $this->getLeaveCaseWarning() . ";\n" .
|
||||
$this->getTheStringVariableForGoogleMaps() . "\n" .
|
||||
"</script>\n" .
|
||||
"<script type='text/javascript' src='/jscore/cases/core/pmDynaform.js'></script>\n" .
|
||||
"<div style='width:100%;padding: 0px 10px 0px 10px;margin:15px 0px 0px 0px;'>\n" .
|
||||
@@ -1312,6 +1317,7 @@ class PmDynaform
|
||||
"var pathRTLCss = '" . $this->pathRTLCss . "';\n" .
|
||||
"var delIndex = " . (isset($this->fields["DEL_INDEX"]) ? G::decrypt($this->fields["DEL_INDEX"], URL_KEY) : "0") . ";\n" .
|
||||
"var leaveCaseWarning = " . $this->getLeaveCaseWarning() . ";\n" .
|
||||
$this->getTheStringVariableForGoogleMaps() . "\n" .
|
||||
"</script>\n" .
|
||||
"<script type='text/javascript' src='/jscore/cases/core/pmDynaform.js'></script>\n" .
|
||||
"<div style='width:100%;padding: 0px 10px 0px 10px;margin:15px 0px 0px 0px;'>\n" .
|
||||
@@ -1339,6 +1345,7 @@ class PmDynaform
|
||||
"var jsonData = " . $this->json_encode($json) . ";\n" .
|
||||
"var httpServerHostname = \"" . System::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var leaveCaseWarning = " . $this->getLeaveCaseWarning() . ";\n" .
|
||||
$this->getTheStringVariableForGoogleMaps() . "\n" .
|
||||
$js .
|
||||
"</script>";
|
||||
|
||||
@@ -1375,6 +1382,7 @@ class PmDynaform
|
||||
"var pathRTLCss = '" . $this->pathRTLCss . "';\n" .
|
||||
"var delIndex = " . (isset($this->fields["DEL_INDEX"]) ? $this->fields["DEL_INDEX"] : "0") . ";\n" .
|
||||
"var leaveCaseWarning = " . $this->getLeaveCaseWarning() . ";\n" .
|
||||
$this->getTheStringVariableForGoogleMaps() . "\n" .
|
||||
"</script>\n" .
|
||||
"<script type='text/javascript' src='/jscore/cases/core/pmDynaform.js'></script>\n" .
|
||||
"<div style='width:100%;padding: 0px 10px 0px 10px;margin:15px 0px 0px 0px;'>\n" .
|
||||
@@ -2190,4 +2198,19 @@ class PmDynaform
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the string variable for google maps
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function getTheStringVariableForGoogleMaps()
|
||||
{
|
||||
$config = Bootstrap::getSystemConfiguration();
|
||||
$googleMaps = new stdClass();
|
||||
$googleMaps->key = $config['google_map_api_key'];
|
||||
$googleMaps->signature = $config['google_map_signature'];
|
||||
$result = 'var googleMaps = ' . G::json_encode($googleMaps) . ';';
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user