add MapView.post(Runnable)
This commit is contained in:
@@ -163,10 +163,14 @@ public class AndroidMapView extends RelativeLayout {
|
|||||||
mClearMap = false;
|
mClearMap = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean postRunnable(Runnable runnable) {
|
||||||
|
return post(runnable);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
mGLView = new GLView(context, mMapView);
|
mGLView = new GLView(context, mMapView);
|
||||||
|
|
||||||
mCompass = new Compass(mapActivity, mMapView);
|
mCompass = new Compass(mapActivity, mMapView);
|
||||||
|
|
||||||
mapActivity.registerMapView(mMapView);
|
mapActivity.registerMapView(mMapView);
|
||||||
@@ -181,6 +185,7 @@ public class AndroidMapView extends RelativeLayout {
|
|||||||
mMapView.updateMap(false);
|
mMapView.updateMap(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public MapView getMap() {
|
public MapView getMap() {
|
||||||
return mMapView;
|
return mMapView;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,6 +64,12 @@ public class GdxMap implements ApplicationListener {
|
|||||||
else
|
else
|
||||||
Gdx.graphics.requestRendering();
|
Gdx.graphics.requestRendering();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean postRunnable(Runnable runnable) {
|
||||||
|
Gdx.app.postRunnable(runnable);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
mMapRenderer = new GLRenderer(mMapView);
|
mMapRenderer = new GLRenderer(mMapView);
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ public abstract class MapView {
|
|||||||
|
|
||||||
public abstract int getWidth();
|
public abstract int getWidth();
|
||||||
public abstract int getHeight();
|
public abstract int getHeight();
|
||||||
|
public abstract boolean postRunnable(Runnable runnable);
|
||||||
|
|
||||||
protected boolean mClearMap;
|
protected boolean mClearMap;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user