Answer the question
In order to leave comments, you need to log in
How to group labels?
how to group markers on the map? I am using react-google-maps
map code
const Map = compose(withScriptjs, withGoogleMap)((props) =>
<GoogleMap
defaultZoom={14}
center={props.center}
>
{props.places.map(row => {
return (
<MarkerElement
row={ row }
placeToShow={ props.placeToShow }
isOpen={ props.isOpen }
onToggleOpen={ (placeToShow, isOpen) => props.onToggleOpen(placeToShow, isOpen) }
places={ props.places }
key={ row.id }
/>
)
})}
</GoogleMap>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question