forked from kevinowino869/mitrobill
fix maps when http
This commit is contained in:
parent
18967b59e2
commit
e709ea4353
@ -163,7 +163,7 @@
|
|||||||
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>
|
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>
|
||||||
<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);
|
||||||
|
@ -188,7 +188,7 @@
|
|||||||
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>
|
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>
|
||||||
<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);
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
title="{$ds['email']}"><i class="glyphicon glyphicon-envelope"></i></a>
|
title="{$ds['email']}"><i class="glyphicon glyphicon-envelope"></i></a>
|
||||||
{/if}
|
{/if}
|
||||||
{if $ds['coordinates']}
|
{if $ds['coordinates']}
|
||||||
<a href="{$_url}customers/view/{$ds['id']}" class="btn btn-default btn-xs"
|
<a href="https://www.google.com/maps/dir//{$ds['coordinates']}/" target="_blank" class="btn btn-default btn-xs"
|
||||||
title="{$ds['coordinates']}"><i class="glyphicon glyphicon-map-marker"></i></a>
|
title="{$ds['coordinates']}"><i class="glyphicon glyphicon-map-marker"></i></a>
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user