I am using the google-map-react NPM package to create a Google Map and several markers.
Question: How can we add the default Google Maps markers to
Adding a marker on your map isn't as easy as we would like to, mostly because the confusing docs but here you have a super easy example:
const Map = props => {
return (
{/* This is the missing part in docs:
*
* Basically, you only need to add a Child Component that
* takes 'lat' and 'lng' Props. And that Component should
* returns a text, image, super-awesome-pin (aka, your marker).
*
*/}
)
}
const Marker = props => {
return
}