Guest User

Untitled

a guest
Jan 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. markers = venues.map((location, i) => {
  2.  
  3. const lat = location.venue.location.lat
  4. const lng = location.venue.location.lng
  5. const index = i + 1 ;
  6. return (
  7. <Marker
  8. key={i}
  9. position={{ lat: lat, lng: lng}}
  10. label={index.toString()}
  11. >
  12. <InfoWindow defaultOptions={{ disableAutoPan: true
  13. }}>
  14. <div onClick={() => {console.log('asdasds')}}>
  15.  
  16. </div>
  17. </InfoWindow>
  18. </Marker>
  19. )
  20. })
Add Comment
Please, Sign In to add comment