Need help if possible. Goole maps not working properly

Hi there guys. So I have the following code but I can`t add the address on the google maps pin.

<!-- MAP -->
<script>
(function($) {
"use strict";
var locations = [
['<div class="infobox"><div class="agent"><div class="agent_desc"><h3 class="title"><a href="#">Remson Limited <p> 15 Regis Duffy Drive, Charlottetown, PE, C1E 2A6</a></div></div></div>',
44.71335274220968,
-63.572813203240045,
1]
];
/* ==============================================
MAP -->
=============================================== */
var map=new google.maps.Map(document.getElementById('map'), {
    zoom: 7, scrollwheel: false, navigationControl: true, mapTypeControl: false, scaleControl: false, draggable: true, styles: [ {
        "featureType": "administrative", "elementType": "labels.text.fill", "stylers": [{"featureType":"poi.business","elementType":"geometry.fill","stylers":[{"visibility":"on"}]}]
    }
    ], zoom:7, center: new google.maps.LatLng(44.71335274220968, -63.572813203240045), mapTypeId: google.maps.MapTypeId.ROADMAP
}
);
var infowindow=new google.maps.InfoWindow();
var marker,
i;
for (i=0;
i < locations.length;
i++) {
    marker=new google.maps.Marker( {
        position: new google.maps.LatLng(locations[i][1], locations[i][2]), map: map, icon: locations[i][3]
    }
    );
    google.maps.event.addListener(marker, 'click', (function(marker, i) {
        return function() {
            infowindow.setContent(locations[i][0]);
            infowindow.open(map, marker);
        }
    }
    )(marker, i));
}

})(jQuery);

hello and welcome to fcc forum :slight_smile:

  • what happens when you try this snippet? r u getting any error? if so the share them here

  • arr you following along some blog/tutorial? if so then perhaps giving link to that would be helpful.

happy coding :slight_smile:

The one that I posted here is not showing the address on the pin… If I try to remove the address from the pin and leave it like that is not showing neither even if my business is registered on google maps. I am new to coding :slight_smile: Somebody did the website for me a long time ago.

Thanks

give that a go if you havent already, happy coding :slight_smile: