user255936
user255936

Reputation: 23

Android: Bing Maps API - ZOOM IN programmatically

I need to make default scale of

 MapView map = new MapView(this, MapRenderMode.VECTOR); 

twice as large (zoom in). I'm using Android Java, no JS

Upvotes: 0

Views: 74

Answers (1)

Duncan Lawler
Duncan Lawler

Reputation: 1772

If you want to zoom in by 2x each time, zoom level is appropriate. Each zoom level is 2x the previous one. For your map instance:

map.setScene(MapScene.createFromLocationAndZoomLevel(map.getCenter(), map.getZoomLevel + 1), MapAnimationKind.LINEAR);

Upvotes: 1

Related Questions