ghamster2 / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

MarkerClustererPlus: Markers at certain longitudes do not display above a certain zoom level #253

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Code in question:

  // See Comments 9 & 11 on Issue 3651 relating to this workaround for a Google Maps bug:
  if (this.getMap().getZoom() > 3) {
    mapBounds = new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),
      this.getMap().getBounds().getNorthEast());
  } else {
    mapBounds = new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472, -178.48388434375), new google.maps.LatLng(-85.08136444384544, 178.00048865625));
  }

What steps will reproduce the problem?
1. Have a marker with longitude of 179

Expected result:
It shows up by itself or in a cluster

Actual result:
It doesn't show up at zoom levels less than 3

Browser / Operating System:
All

Additional comments:
An easy fix would seem to be to change the hardcoded longitudes to -180 and 180 
respectively. Not sure how these arbitrary values were chosen... they were 
mentioned in the issue, but I couldn't find any reason given for them.

Original issue reported on code.google.com by afriv...@gmail.com on 3 May 2013 at 9:31