Skip to content

Commit 9c70ac6

Browse files
committed
Updated README.md and added an example how to define a tooltip for Marker component.
1 parent 95b2f23 commit 9c70ac6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ To place a marker on the Map, include it as a child of the `<Map />` component.
141141
className={'map'}
142142
zoom={14}>
143143
<Marker
144+
title={'The marker`s title will appear as a tooltip.'}
144145
name={'SOMA'}
145146
position={{lat: 37.778519, lng: -122.405640}} />
146147
<Marker

examples/components/withMarkers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const WithMarkers = React.createClass({
1717
className={'map'}
1818
zoom={14}>
1919
<Marker
20+
title={'The marker`s title will appear as a tooltip.'}
2021
name={'SOMA'}
2122
position={{lat: 37.778519, lng: -122.405640}} />
2223
<Marker

0 commit comments

Comments
 (0)