我通过以下方式将默认标记添加到GoogleMap:
GoogleMap map = ((MapFragment) getFragmentManager().findFragmentById(R.id.editMapMap)).getMap();
MarkerOptions markerOptions = new MarkerOptions();
markerOptions.position(currentLocation.getCoordinate());
markerOptions.title(Utils.getLocationString(currentLocation.getCoordinate()));
markerOptions.snippet("Blah");
locationMarker = map.addMarker(markerOptions);
locationMarker.setDraggable(true);
Run Code Online (Sandbox Code Playgroud)
如何让标记始终显示标题和片段而不触摸?我也想禁用隐藏它们.