This file contains 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
int mZoomLevel = mapView.getZoomLevel(); | |
final double maxZoomLatitudeSpan = mZoomLevel == guide.getMap().getMaxZoom() ? | |
mapView.getBoundingBox().getLatitudeSpanE6() : | |
mapView.getBoundingBox().getLatitudeSpanE6() / Math.pow(2, guide.getMap().getMaxZoom() - mZoomLevel); | |
final double requiredLatitudeZoom = | |
guide.getMap().getMaxZoom() - | |
Math.ceil(Math.log(box.getLatitudeSpanE6() / maxZoomLatitudeSpan) / Math.log(2)); | |
final double maxZoomLongitudeSpan = mZoomLevel == guide.getMap().getMaxZoom() ? |
This file contains 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
package se.springworks.api.client; | |
import com.squareup.okhttp.OkHttpClient; | |
import java.util.List; | |
import retrofit.Callback; | |
import retrofit.RequestInterceptor; | |
import retrofit.RestAdapter; | |
import retrofit.client.OkClient; |