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);