我尝试从Google地图中删除折线,但无法删除标记点,如何删除折线?
mFabClearAllPins = (Button) rootView.findViewById(R.id.fab_all_clear);
mFabClearAllPins.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if(mPolyLine!=null)
mPolyLine.remove();
googleMap.clear();
}
});