Disable center button in MyLocation at Google Map API V2

后端 未结 3 1734
忘掉有多难
忘掉有多难 2020-12-14 01:05

I searched a lot on the web, but I haven\'t found anything which answered my question. When I enable MyLocation with

gmap.setMyLocationEnabled(true)<

3条回答
  •  有刺的猬
    2020-12-14 01:33

    Have you tried something like this?

    
    

    It effectively removes all the default UI off my maps except for the UI related to markers. Check this link for more info.

    EDIT

    Replying to OP's comment, id advise using a custom location algorithm instead of letting the google maps API take over. I've done it before and its not overly painful, i just put a marker on the map to let the user know where he is, and make the marker draggable so the user can refine his position manually.

    Check this link.

提交回复
热议问题