Getting Proper Map Boundaries
I use the simple: var ne = gMap.getBounds().getNorthEast(),sw = gMap.getBounds().getSouthWest(); to get the lat long of the boundaries of a map It works fine when the map is like
Solution 1:
If you refer to this question: Get non-wrapping map bounds in Google Maps API V3
You'll see that as you have stated the map obviously wraps on the date line, so that as you zoom out you don't end up with blank areas at the edges and so that you scroll off the edge of china and hit America etc.
If you examine the answers you will see that you need to check for this wrap and go from there. And interesting question that I had never really considered!
Post a Comment for "Getting Proper Map Boundaries"