I have an array generated from a MySql table through PHP, I want to use the script provided by Google to display on a map a marker from the latitude and longitude stored in the array. How would the procedure be, when I have the data of lat and long in $ array ['latitude'] and $ array ['length'] ???
<script>
var map;
var latitud = -38.858228;
var longitud = -60.057083;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: latitud, lng: longitud},
zoom: 18
});
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDxDngjvn6vXgmzU4oA5lSqDeyaC-OJ6sQ&callback=initMap"
async defer></script>