public Map_test(FrameLayout sss1, Context mContext, MainActivity activity) {
// create map view
mMapView = new NMapView(mContext);
map_test = this;
// set a registered API key for Open MapViewer Library
mMapView.setApiKey(navermap);
// set the activity content to the parent view
sss1.addView(mMapView);
// initialize map view
mMapView.setClickable(true);
// register listener for map state changes
//mMapView.setOnMapStateChangeListener(this);
//이부분을 실행하면요 앱이 종료가 되는데요. 왜죽는지 모르겠습니다.
mMapView.setOnMapStateChangeListener(new NMapView.OnMapStateChangeListener() {
@Override
public void onZoomLevelChange(NMapView arg0, int arg1) {
// TODO Auto-generated method stub
}
@Override
public void onMapInitHandler(NMapView arg0, NMapError errorInfo) {
}
@Override
public void onMapCenterChangeFine(NMapView arg0) {
// TODO Auto-generated method stub
}
@Override
public void onMapCenterChange(NMapView arg0, NGeoPoint arg1) {
// TODO Auto-generated method stub
}
@Override
public void onAnimationStateChange(NMapView arg0, int arg1, int arg2) {
// TODO Auto-generated method stub
}
});