register MapView when Context is instance of MapActivity
This commit is contained in:
parent
ccb00b17a5
commit
d1dbce8682
@ -105,6 +105,10 @@ public class MapView extends RelativeLayout {
|
|||||||
Tile.SIZE = 400;
|
Tile.SIZE = 400;
|
||||||
|
|
||||||
mMap = new AndroidMap(this);
|
mMap = new AndroidMap(this);
|
||||||
|
|
||||||
|
if (context instanceof MapActivity)
|
||||||
|
((MapActivity)context).registerMapView(this);
|
||||||
|
|
||||||
mCompass = new Compass(context, mMap);
|
mCompass = new Compass(context, mMap);
|
||||||
|
|
||||||
mMap.clearMap();
|
mMap.clearMap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user