We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d87b73b + d5574a4 commit 00b9428Copy full SHA for 00b9428
src/components/Marker.js
@@ -1,4 +1,4 @@
1
-import React from 'react'
+import React, {Fragment} from 'react'
2
import PropTypes from 'prop-types'
3
4
import { camelize } from '../lib/String'
@@ -104,7 +104,20 @@ export class Marker extends React.Component {
104
}
105
106
render() {
107
- return null;
+ return (
108
+ <Fragment>
109
+ {this.props.children && this.marker ?
110
+ React.Children.only(
111
+ React.cloneElement(
112
+ this.props.children,
113
+ { marker: this.marker,
114
+ google: this.props.google,
115
+ map: this.props.map}
116
+ )
117
+ ) : null
118
+ }
119
+ </Fragment>
120
121
122
123
0 commit comments