Android Custom marker icon

后端 未结 4 1282
离开以前
离开以前 2020-12-17 09:08

I\'m working on application with Google maps so i want to define a custom marker for each custom place, For example (gas station- Hotel- Hospital.. ) ! i have a overlays cla

4条回答
  •  不思量自难忘°
    2020-12-17 09:36

    To change the color of the map icon:

    mMap.addMarker(new MarkerOptions().position(baitulMosque).title("Baitul Mosque").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_CYAN)));
    

提交回复
热议问题