Google map displays the "edge" of the earth

Has anyone else found it problematic that Google Maps (now) allows you to move beyond the poles. He stopped at the poles, right?

The site I'm working on makes a request based on the location on our server every time a user clicks or zooms in on a map. This causes errors because requests that are launched by the user by panning the edge of the map are meaningless.

Currently, I am processing the edge, so to speak, on the server side, but this is not a very good user interface on the client side. Does anyone have a solution to prevent over-panning?

thank

screenshot: edge of the earth!

+3
source share
2 answers

- , " "; 2.

http://econym.org.uk/gmap/range.htm

, 3, http://jsfiddle.net/44e6y/9/, :

  • , ,
  • (, , LatLngBounds , ).
  • , 2 iframe JSFiddle. , , . , . , .
+2

, 2 ( ), , , 8 . , , , 99% .

JSFiddle

, .

google.maps.event.addListener(map, 'zoom_changed', function() {
      checkBounds();});
0

All Articles