-2

I am using this map to plot my points

https://www.npmjs.com/package/react-google-maps

I am not able to show plot points here is my code https://codesandbox.io/s/confident-wozniak-kq9uu

<Marker
          key={park.trackingId}
          position={{
            lat: park.endPoint.coordinates[1],
            lng: park.endPoint.coordinates[0]
          }}
          onClick={() => {
            setSelectedPark(park);
          }}
user944513
  • 12,247
  • 49
  • 168
  • 318

1 Answers1

0

It actually has markers, but it is zoomed-out, I think you interchanged the position also, try to change it to:

      <Marker
          key={park.trackingId}
          position={{
            lat: park.endPoint.coordinates[0],
            lng: park.endPoint.coordinates[1]
          }}
          onClick={() => {
            setSelectedPark(park);
          }}
        />

Hope this helps!

Jojo Tutor
  • 810
  • 6
  • 7