user2316075
user2316075

Reputation: 499

Android Skmaps zoom and center map to list of annotations

I use skmaps/skobbler in Android app. I need to center and zoom the map to array of Annotations in automated mode, is this possible?

Regards.

Upvotes: 0

Views: 74

Answers (1)

Cristian P.
Cristian P.

Reputation: 238

There isn’t a method to directly center and zoom the map to a group of annotations. Instead you can use the following method to simulate it:

fitBoundingBox(
    final SKBoundingBox boundingBox, 
    final int pixelPaddingX, 
    final int pixelPaddingY,
    final int pixelPaddingYBottom, 
    final int pixelPaddingYTop
)

Upvotes: 2

Related Questions