cgeo/c-geo-opensource — Issue #716: Zooming out too much may confuse c:geo
Author: samueltardieu
Created: 2011-10-26 09:10:57+00:00
State: open
Labels: bug, low

Google Maps seems not to restrict itself to the range of longitude we deem acceptable. For example, look at a cache, zoom out until you see the whole earth, and you might get:

```
E/cgeo (11001): cgMapView.draw: cgeo.geocaching.geopoint.Geopoint$MalformedCoordinateException: malformed longitude: -335.1517
```

This can even go further as in:

```
E/cgeo (11001): cgMapView.draw: cgeo.geocaching.geopoint.Geopoint$MalformedCoordinateException: malformed longitude: -560.1517
```

where you see the whole Earth several times on your screen.

We should fix this in two parts:

- `Geopoint` should take care of the modulo operation and accept any longitude as valid when it comes from microdegrees.
- We should not allow zoom levels allowing the representation of the whole earth as we are not ready to deal (in live map for example) with physical earth locations being present several times on the displayed map.