0

I am plotting different markers on different locations on the map and then drawing polylines from markers to markers. since the map is repeating the markers are repeating as well and so the lines go in all direction in order to find the shortest path on the map.

Even if we optimize the markers, the markers won't repeat but the polylines are drawn weirdly if the markers are far apart from each other on the map.

Is there a way we can restrict map from repeating itself?

duncan
  • 31,401
  • 13
  • 78
  • 99
khalid
  • 11
  • 3

1 Answers1

0

You should restrict minZoom to 1 and disable map movement on that zoom level.
Have you seen these SO answers?

Display world map with no repeats
Google Maps API V3: Bound world to fit area and disable map repeat

Community
  • 1
  • 1
cema-sp
  • 362
  • 2
  • 8