Skip to content

Commit

Permalink
changed height of pop ups, added address and phone numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
wohlfea committed May 13, 2016
1 parent 57a6aaa commit e6b597f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions css/sidebar.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*Google Maps Marker Info Window Style */
div#content {
margin: auto;
padding: 1%;
height: auto;
font-weight:bold;
font-color: white;
text-align: center;
}

#markerName {
Expand Down
7 changes: 3 additions & 4 deletions js/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@
icon: markerImg,
animation: google.maps.Animation.DROP,
});

console.log(obj);
var contentString = '<div id="content">'+
'<h3 id="markerName" class="firstHeading">' + obj.name + '</h3>' +
'<div id="imgArea">'+ '<img src=' + obj.image_url + '>' +'</div>'+
'</div>';
'<h3>' + obj.address + '</h3>' + '<h4>' + obj.display_phone + '</h4>' + '</div>';

function toggleBounce() {
if (marker.getAnimation() !== null) {
Expand All @@ -183,7 +183,7 @@
arrowSize: 10,
minWidth: 50,
maxWidth: 150,
// maxHeight: 170,
maxHeight: 225,
borderWidth: 1,
borderColor: '#2c2c2c',
disableAutoPan: true,
Expand All @@ -196,7 +196,6 @@

marker.addListener('mouseover', function() {
infoBubble.open(map, this);
// marker.setAnimation(google.maps.Animation.BOUNCE);
});

marker.addListener('mouseout', function() {
Expand Down

0 comments on commit e6b597f

Please sign in to comment.