This commit is contained in:
2026-05-12 11:42:20 +00:00
parent d605b85089
commit 995cdb4979
2 changed files with 7 additions and 6 deletions

View File

@@ -73359,14 +73359,12 @@ function trouve_coordonnees_geo_ip(ip)
success: function(data) {
if(data !='false')
{
alert(data);
return;
var str = data.split('/'),
lat = str[0], // Latitude de l'adresse IP retourné
lon = str[1], // Longitude de l'adresse IP retourné
out = "&output=embed"
src="https://maps.google.com/maps?q="+lat+","+lon+out; // Source de l'iframe
// src="https://maps.google.com/maps?q="+lat+","+lon+out; // Source de l'iframe
src="/var/www/Config/Geolocaliser.php?latitude="+lat+"&longitude="+lon; // Source de l'iframe
/*
$('#map').attr("src", src);
$('#div_contenu_map').modal("show"); // Affiche en modal = carte google
@@ -73375,7 +73373,10 @@ function trouve_coordonnees_geo_ip(ip)
$('#map').html("").attr("src", ""); // Réinitialise la source de l'iframe à la fermeture du modal
});
*/
load('/var/www/Config/Geolocaliser.php?latitude=lat&longitude=lon');
alert(src);
// load('/var/www/Config/Geolocaliser.php?latitude=lat&longitude=lon');
}
else
{