Handle Http for maps
This commit is contained in:
parent
3c2ca66b48
commit
18967b59e2
@ -39,7 +39,7 @@ switch ($action) {
|
|||||||
$ui->assign('xheader', '<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css">');
|
$ui->assign('xheader', '<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css">');
|
||||||
$ui->assign('_title', Lang::T('Customer Geo Location Information'));
|
$ui->assign('_title', Lang::T('Customer Geo Location Information'));
|
||||||
$ui->assign('xfooter', '<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>');
|
$ui->assign('xfooter', '<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>');
|
||||||
$ui->display('customer-map.tpl');
|
$ui->display('customers-map.tpl');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
{literal}
|
{literal}
|
||||||
<script>
|
<script>
|
||||||
function getLocation() {
|
function getLocation() {
|
||||||
if (navigator.geolocation) {
|
if (window.location.protocol == "https:" && navigator.geolocation) {
|
||||||
navigator.geolocation.getCurrentPosition(showPosition);
|
navigator.geolocation.getCurrentPosition(showPosition);
|
||||||
} else {
|
} else {
|
||||||
setupMap(51.505, -0.09);
|
setupMap(51.505, -0.09);
|
Loading…
x
Reference in New Issue
Block a user