Google-map-react: Display multiple locations on the map

Created on 7 Feb 2017  Â·  5Comments  Â·  Source: google-map-react/google-map-react

Hi can you anyone guide how we can show the multiple locations on the map ,I am trying to do it but its not working,I am putting bellow code to put multiple locations
center={[{lat: 21.883851754,
lng: -159.465845879},{lat: 21.883851754,
lng: -159.465845879}]}

Most helpful comment

multiple location means show multiple pins in single map. shown in image

multiple_pins
Uploading multiple_pins.png…

All 5 comments

WTF this mean - multiple location?

multiple location means show multiple pins in single map. shown in image

multiple_pins
Uploading multiple_pins.png…

You can check the simple example:
https://github.com/istarkov/google-map-react-examples/blob/master/web/flux/components/examples/x_simple/simple_map_page.jsx

It shows two points, basically points are constructed using another component.

The syntax you are using only gets one latitude and one longitude. So, thats why it does not work.

I cant get your question at all, almost all examples are showing multiple markers, one of the examples even shows 10 000 markers on the map, so what are u really need?

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thehulke picture thehulke  Â·  3Comments

Pau1fitz picture Pau1fitz  Â·  4Comments

rku181 picture rku181  Â·  4Comments

nhducit picture nhducit  Â·  5Comments

VLNTNA picture VLNTNA  Â·  4Comments