i create map with google map Api and i get latitude et longitude position marker and i want to passing this values to my blade and use it . how i can do that
function placeMarker(location) {
if ( marker ) {
marker.setPosition(location);
positionLat= marker.getPosition().lat();
positionLng= marker.getPosition().lng();
} else {
marker = new google.maps.Marker({
position: location,
map: map,
title:'هنا يقع العقار',
icon:markerUrl,
});
positionLat= marker.getPosition().lat();
positionLng= marker.getPosition().lng();
}
//my variabels
console.log(positionLat);
console.log(positionLng);
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Kd8C2N
via IFTTT
Aucun commentaire:
Enregistrer un commentaire