I'm adding default Marker to GoogleMap the following way:
GoogleMap map = ((MapFragment) getFragmentManager().findFragmentById(R.id.editMapMap)).getMap(); MarkerOptions markerOptions = new MarkerOptions(); markerOptions.position(currentLocation.getCoordinate()); markerOptions.title(Utils.getLocationString(currentLocation.getCoordinate())); markerOptions.snippet("Blah"); locationMarker = map.addMarker(markerOptions); locationMarker.setDraggable(true);
How can I make marker always show title and snippet without touch? I also would like to disable hiding them on touch.
If I understood your issue correctly, you want the marker name to be displayed in Google My Maps. For that click on the style option just below layer name. Now change the set label option to name or description to display it.
For adding a custom marker to Google Maps navigate to the app > res > drawable > Right-Click on it > New > Vector Assets and select the icon which we have to show on your Map. You can change the color according to our requirements. After creating this icon now we will move towards adding this marker to our Map.
It is very easy:
locationMarker.showInfoWindow();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With