I want to show my current position marker icon like to the attached image.
Asked
Active
Viewed 148 times
-1

Rakesh kushwaha
- 709
- 1
- 10
- 22
-
check this: https://stackoverflow.com/questions/14811579/how-to-create-a-custom-shaped-bitmap-marker-with-android-map-api-v2 – Korat Prakash Sep 29 '18 at 09:21
-
Possible duplicate of [Android Custom marker icon](https://stackoverflow.com/questions/10077494/android-custom-marker-icon) – Jeel Vankhede Sep 29 '18 at 09:26
-
@KoratPrakash Thanks, it means this is an image. This not from google map, right??? – Rakesh kushwaha Sep 29 '18 at 09:26
1 Answers
1
use this to add your custom marker to map
mGoogleMap.addMarker(new MarkerOptions()
.position(LATLONG)
.icon(BitmapDescriptorFactory.fromBitmap(getMarkerBitmapFromView(R.drawable.yourIcon))));

Mohamad Rostami
- 420
- 3
- 17
-
1Thanks Mohamad Rostani, I know how to use custom marker, I just want to know that this is our custom icon or it come from google map. – Rakesh kushwaha Sep 29 '18 at 09:44
-
-
1
-
that small circle icon is google maps default icon. and the highlighted circle comes when the location is not very accurate. – Mohamad Rostami Sep 29 '18 at 09:53
-
thats google maps default bro. but maybe you could change the shape – Mohamad Rostami Sep 29 '18 at 09:58
-
thats true. take a look at this https://stackoverflow.com/questions/44786552/how-to-implement-current-location-blue-icon-in-here-map/45138088 – Mohamad Rostami Sep 29 '18 at 10:33
-
Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/180987/discussion-between-mohamad-rostami-and-rakesh-kushwaha). – Mohamad Rostami Sep 29 '18 at 12:35