[android] add support for gnustl

This commit is contained in:
Konstantin Käfer
2018-06-21 14:44:00 +02:00
parent 30e570aae7
commit 4a3c4edb59
17 changed files with 59 additions and 29 deletions

View File

@@ -402,7 +402,7 @@ CameraOptions cameraForLatLngs(const std::vector<LatLng>& latLngs, const Transfo
scaleY -= (padding.top() + padding.bottom()) / height;
minScale = util::min(scaleX, scaleY);
}
double zoom = transform.getZoom() + ::log2(minScale);
double zoom = transform.getZoom() + util::log2(minScale);
zoom = util::clamp(zoom, transform.getState().getMinZoom(), transform.getState().getMaxZoom());
// Calculate the center point of a virtual bounds that is extended in all directions by padding.