android: rename MapView.getMap()
This commit is contained in:
parent
af823f74c7
commit
c11a0d698b
@ -55,7 +55,7 @@ public class SimpleMapActivity extends BaseMapActivity {
|
||||
else
|
||||
t = VtmThemes.OSMARENDER;
|
||||
|
||||
mMapView.getMap().setTheme(t);
|
||||
mMapView.map().setTheme(t);
|
||||
|
||||
loooop((i + 1) % 3);
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public abstract class MapActivity extends FragmentActivity {
|
||||
* the calling MapView.
|
||||
*/
|
||||
public final void registerMapView(MapView map) {
|
||||
mMap = map.getMap();
|
||||
mMap = map.map();
|
||||
|
||||
SharedPreferences sharedPreferences = getSharedPreferences(PREFERENCES_FILE,
|
||||
MODE_PRIVATE);
|
||||
|
@ -80,7 +80,7 @@ public class MapScaleBar extends Layer implements UpdateListener {
|
||||
private final BitmapRenderer mBitmapLayer;
|
||||
|
||||
public MapScaleBar(MapView map) {
|
||||
super(map.getMap());
|
||||
super(map.map());
|
||||
|
||||
mBitmap = Bitmap.createBitmap(BITMAP_WIDTH,
|
||||
BITMAP_HEIGHT,
|
||||
|
@ -124,10 +124,7 @@ public class MapView extends RelativeLayout {
|
||||
return mMap.handleGesture(Gesture.DOUBLE_TAP, mMotionEvent.wrap(e));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public Map getMap() {
|
||||
return mMap;
|
||||
}
|
||||
|
||||
public void onStop() {
|
||||
@ -167,4 +164,8 @@ public class MapView extends RelativeLayout {
|
||||
if (mWidth > 0 && mHeight > 0)
|
||||
mMap.viewport().setScreenSize(width, height);
|
||||
}
|
||||
|
||||
public Map map() {
|
||||
return mMap;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user