Skip to content

Commit 95b2f23

Browse files
committed
Add title property on marker component
1 parent 77dea87 commit 95b2f23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Marker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class Marker extends React.Component {
4141

4242
renderMarker() {
4343
let {
44-
map, google, position, mapCenter, icon, label, draggable
44+
map, google, position, mapCenter, icon, label, draggable, title
4545
} = this.props;
4646
if (!google) {
4747
return null
@@ -57,6 +57,7 @@ export class Marker extends React.Component {
5757
position: position,
5858
icon: icon,
5959
label: label,
60+
title: title,
6061
draggable: draggable
6162
};
6263
this.marker = new google.maps.Marker(pref);

0 commit comments

Comments
 (0)