[android] #3327 - replaced ZoomLevel with Zoom, introduced new methods, deprecated old ones
This commit is contained in:
@@ -478,7 +478,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
@Override
|
||||
public void onMyLocationChange(@Nullable Location location) {
|
||||
if (location != null) {
|
||||
mMapView.setZoomLevel(16);
|
||||
mMapView.setZoom(16);
|
||||
mMapView.setCenterCoordinate(new LatLng(location));
|
||||
mMapView.setOnMyLocationChangeListener(null);
|
||||
}
|
||||
@@ -507,7 +507,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
addMarkers();
|
||||
addPolyline();
|
||||
addPolygon();
|
||||
mMapView.setZoomLevel(7);
|
||||
mMapView.setZoom(7);
|
||||
mMapView.setCenterCoordinate(new LatLng(38.11727, -122.22839));
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -50,7 +50,7 @@ public class MapFragmentActivity extends AppCompatActivity {
|
||||
|
||||
MapView mapView = getMap();
|
||||
mapView.setStyleUrl(Style.EMERALD);
|
||||
mapView.setZoomLevel(12);
|
||||
mapView.setZoom(12);
|
||||
mapView.setCenterCoordinate(new LatLng(50.853658, 4.352419));
|
||||
|
||||
// move attribution control to right of screen
|
||||
|
||||
@@ -45,7 +45,7 @@ public class PressForMarkerActivity extends AppCompatActivity implements MapView
|
||||
mMapView.setStyleUrl(Style.EMERALD);
|
||||
mMapView.onCreate(savedInstanceState);
|
||||
mMapView.setCenterCoordinate(new LatLng(45.1855569, 5.7215506));
|
||||
mMapView.setZoomLevel(11);
|
||||
mMapView.setZoom(11);
|
||||
mMapView.setOnMapLongClickListener(this);
|
||||
((ViewGroup) findViewById(R.id.activity_container)).addView(mMapView);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ public class TiltActivity extends AppCompatActivity {
|
||||
mMapView.setAccessToken(ApiAccess.getToken(this));
|
||||
mMapView.setStyleUrl(Style.MAPBOX_STREETS);
|
||||
mMapView.setCenterCoordinate(dc);
|
||||
mMapView.setZoomLevel(11);
|
||||
mMapView.setZoom(11);
|
||||
mMapView.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,6 @@
|
||||
app:style_url="@string/style_mapbox_streets"
|
||||
app:center_latitude="38.897705003219784"
|
||||
app:center_longitude="-77.03655168667463"
|
||||
app:zoom_level="15" />
|
||||
app:zoom="15" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -19,6 +19,6 @@
|
||||
app:style_url="@string/style_mapbox_streets"
|
||||
app:center_latitude="47.798202"
|
||||
app:center_longitude="7.573781"
|
||||
app:zoom_level="4" />
|
||||
app:zoom="4" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -19,6 +19,6 @@
|
||||
app:style_url="@string/style_mapbox_streets"
|
||||
app:center_latitude="38.897705003219784"
|
||||
app:center_longitude="-77.03655168667463"
|
||||
app:zoom_level="15" />
|
||||
app:zoom="15" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -26,6 +26,6 @@
|
||||
app:center_latitude="38.897705003219784"
|
||||
app:center_longitude="-77.03655168667463"
|
||||
app:style_url="@string/style_mapbox_streets"
|
||||
app:zoom_level="15" />
|
||||
app:zoom="15" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -43,6 +43,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:style_url="@string/style_mapbox_streets"
|
||||
app:zoom_level="15" />
|
||||
app:zoom="15" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -20,7 +20,7 @@
|
||||
app:center_latitude="47.798202"
|
||||
app:center_longitude="7.573781"
|
||||
app:style_url="@string/style_mapbox_streets"
|
||||
app:zoom_level="4" />
|
||||
app:zoom="4" />
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
|
||||
Reference in New Issue
Block a user