When I load map using Mapview, map can be shown,but when operate the map, it is very caton. it is very smoothly when load map with SupportMapFragment
. this is my code:
private void initialize() {
setContentView(R.layout.activity_main);
boolean success = com.here.android.mpa.common.MapSettings.setIsolatedDiskCacheRootPath(
getApplicationContext().getExternalFilesDir(null) + File.separator + ".here-maps",
"com.here.android.tutorial.MapService");
if (!success) {
Toast.makeText(getApplicationContext(), "Unable to set isolated disk cache path.", Toast.LENGTH_LONG);
} else {
final MapView mapView = findViewById(R.id.mapview);
mapView.setVisibility(View.VISIBLE);
ApplicationContext context = new ApplicationContext(this);
MapEngine.getInstance().init(context, new OnEngineInitListener() {
@Override
public void onEngineInitializationCompleted(Error error) {
Map map = new Map();
mapView.setMap(map);
}
});
}
}
some one who can help me?