MainActivity
@Override
public void onSingleTap(int type, double x, double y) {
if (type == MapEventManager.EVEN_TAP_TYPE_ATTR) {
if ("M_ONEMAP_GZ".equals(UtilHelper.getResString(R.string.apk_client))) {
polygonConfigs = MapUtilsBySqlite.extraConfigArray("polygonSync");
}
if (mapManager.isLoaded()) {
Log.i("点击了","地图中心");
closeTool();
showAttrsView(x, y);
}
} else if (type == MapEventManager.EVEN_TAP_TYPE_DEFAULT) {
showOrHideToolBtn();
}
}
public void closeTool(){
initCommonMenus();
lnrMenu.setVisibility(View.GONE);
llCommonMenu.setVisibility(View.VISIBLE);
llLeftTop.setVisibility(View.VISIBLE);
rvMenu.setVisibility(View.GONE);
}
else if (v.getId() == R.id.menu_iv_menu) {
EventTrack.putEvent(EventTrackType.FUNCTION_MENU);
llCommonMenu.setVisibility(View.GONE);
llLeftTop.setVisibility(View.GONE);
lnrMenu.setVisibility(View.VISIBLE);
rvMenu.setVisibility(View.VISIBLE);
closeMap();
、
}
public void closeMap(){
if(mapManager.isLoaded()){
lnrAttr.removeAllViews();
lnrAttr.setVisibility(View.GONE);
}
}