Always show map marker title in Android

前端 未结 6 2282
隐瞒了意图╮
隐瞒了意图╮ 2020-12-06 04:18

I\'m adding default Marker to GoogleMap the following way:

GoogleMap map = ((MapFragment) getFragmentManager().findFragmentById(R.id.editMapMap)).getMap();

         


        
6条回答
  •  遥遥无期
    2020-12-06 04:33

    Hold but here is my answer:

    From the documentation, there is an text saying that info window is shown one at time, so there is no way to do that:

    "An info window allows you to display information to the user when they tap on a marker. Only one info window is displayed at a time. If a user clicks on a marker, the current info window will be closed and the new info window will be displayed. Note that if the user clicks on a marker that is currently showing an info window, that info window closes and re-opens."

    Maps api doc says:

    "Best practices: For the best user experience, only one info window should be open on the map at any one time. Multiple info windows make the map appear cluttered. If you only need one info window at a time, you can create just one InfoWindow object and open it at different locations or markers upon map events, such as user clicks. If you do need more than one info window, you can display multiple InfoWindow objects at the same time."

    on https://developers.google.com/maps/documentation/javascript/infowindows

提交回复
热议问题