This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculates the zoom level for the StreetWatchMap using the formula given by a Google employee (maps team) | |
* in https://groups.google.com/d/msg/google-maps-js-api-v3/hDRO4oHVSeM/osOYQYXg2oUJ. For simplification | |
* the formula has been duplicated and simplified below | |
* | |
* R = RequestedMeterRadius | |
* S = MinScreenSizeInDp | |
* B = BaseMetersPerPixel (for the type of map) | |
* L = Latitude (Center of focus) | |
* Z = ZoomLevel |