显示地图标记标题我添加默认标记的GoogleMap方式如下:始终在Android的
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);
我怎样才能使标志始终显示标题和摘要没有联系?我也想禁用他们隐藏他们。
这可能对谷歌地图V2?我回到假,但标记仍然显示标题... – Ricky 2014-03-31 09:33:35
是的。它适用于V2。我只尝试了v2。另一种选择是,那是把标题作为空字符串。即“”。但不好 – sandeepmaaram 2014-04-03 06:23:56