Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ To place a marker on the Map, include it as a child of the `<Map />` component.
className={'map'}
zoom={14}>
<Marker
title={'The marker`s title will appear as a tooltip.'}
name={'SOMA'}
position={{lat: 37.778519, lng: -122.405640}} />
<Marker
Expand Down
1 change: 1 addition & 0 deletions examples/components/withMarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const WithMarkers = React.createClass({
className={'map'}
zoom={14}>
<Marker
title={'The marker`s title will appear as a tooltip.'}
name={'SOMA'}
position={{lat: 37.778519, lng: -122.405640}} />
<Marker
Expand Down
3 changes: 2 additions & 1 deletion src/components/Marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Marker extends React.Component {

renderMarker() {
let {
map, google, position, mapCenter, icon, label, draggable
map, google, position, mapCenter, icon, label, draggable, title
} = this.props;
if (!google) {
return null
Expand All @@ -57,6 +57,7 @@ export class Marker extends React.Component {
position: position,
icon: icon,
label: label,
title: title,
draggable: draggable
};
this.marker = new google.maps.Marker(pref);
Expand Down