Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- markers = venues.map((location, i) => {
- const lat = location.venue.location.lat
- const lng = location.venue.location.lng
- const index = i + 1 ;
- return (
- <Marker
- key={i}
- position={{ lat: lat, lng: lng}}
- label={index.toString()}
- >
- <InfoWindow defaultOptions={{ disableAutoPan: true
- }}>
- <div onClick={() => {console.log('asdasds')}}>
- </div>
- </InfoWindow>
- </Marker>
- )
- })
Add Comment
Please, Sign In to add comment