Standard icon for current position/location - android

I am looking for the glossy blue Google Maps icon for the user's current position. I have seen it being used in several places like in the current version of Google+ on Android:
The icon also appears on the launcher icon of the Google Maps Android application and as an indicator for the user's current location on the map.
Unfortunately, it is not available in the Android SDK resources (although there is "ic_maps_indicator_current_position.png", but that is a different icon) and I could not find it on the web. But I think that this icon is so well-known -- there must a possibility to use it in your own application.

unzip the official GoogleMap.apk and find it in the resource folder.

Related

How to make a flexible playstore app Icon that supports both "Normal Mode" and "Dark Mode"

I have recently pushed a React Native app to playstore and used an Icon to represent in playstore.When Dark Mode is enabled my app's playstore Icon's background turns black which makes Icon ugly. Now my doubt is
Do I have to use white background for Icon for all the future apps?
OR
Is there any way to make our Icon to be flexible in both Normal Mode and Dark Mode?
regarding your first question if the issue is only inside of playstore I think light background will not hurt. I dont think google play store offers a way to make this adaptive on their website.
regarding the second one, yes! inside your android project you can place alternative versions of your launcher icon inside of /res/mipmap-night-** resource folder btw it is possible you will need to create it. And also I recommend you actually create /res/mipmap-night-hdpi, /res/mipmap-night-xhdpi etc. to take into account the different screen resolutions. Since you are developing with react you would have to dive into your android project to find the res folder, or alternatively open your project in android studio and you will see it right away. this should change how your app looks on your users home screen
UPDATE
by mistake I had pointed to the drawable-night-** folders in my answer but Launcher icons in android are actually saved in the mipmap folders. I have now corrected this. I also tryed it out and it works (however I had to restart my device for it to take effect. asuming your users dont switch constantly between day and night mode they will always se the right icon for them)
Play Store icon it is a different image that you upload.
Make a complete white (or whatever) background to that image. In the official guidelines, Google says that you shouldn't make a partial background.
There is no "dark" icon in the Google Play Store; if you leave it transparent, it will display the default background color for each state (normal-dark).

google maps map style

is there a possibility to have the map exactly like Google Maps Android app does ? I mean with the yellow roads etc. Using google maps api for android we have only hybrid, normal, satellite and no one looks like the app one. I tried the styling wizard, the one i need is the standard one from wizard, but nothing is generated as ROADMAP is the standard style.
You can style the Map View / Map Fragment to however you want
https://developers.google.com/maps/documentation/android-sdk/styling
Use the Map Style Wizard https://mapstyle.withgoogle.com/ to create a style that matches the one you are looking at and apply that to your codebase (using the instructions above)

Google Maps and Google Maps directions icon

I would like to use the "standard" Google Maps icon and the Google Maps direction icon as src in an ImageButton. When the ImageButton is pressed I would like to fire an Intent to start Google Maps. The icons I have in mind are those that appear in the following screenshot. These icons appear when you show a map using Google Maps lite mode.
I can't seem to find those or similar icons provided by Google anywhere. Is this happening because I am not supposed to use them?
You can find the direction and map icons in android studio here
Expand res > right click on drawables > new > Vector assets > click on
the button against Icon > select maps
Or you can download the svg's from here
Google encourage developers to use vector assets as they are scalable and follow material design specifications suggested by google. So it's better to use them.
If you still want to use the exact icons then you can get them here

How can I set a Google Map Marker back to the default icon after changing it?

I am using the android-maps-utils library with a Google Map in an android app I'm working on, and I have several markers on the map. I change the icons for some markers when certain conditions are met using setIcon() with an IconGenerator.
I want to then change the icons back to the original red Google Maps standard icons when a different condition is met. I can track the condition and change them to a different custom icon, but don't know how to return them to the Google default short of finding an icon somewhere online and adding it into my project to add manually as I am with my personalized ones. Does anyone know how to retrieve the defaults?
You can do
marker.setIcon(BitmapDescriptorFactory.defaultMarker());

How to change the color of Google Maps on Android?

I am currently developing an android application that uses the latest version of Google Maps API... My application is an exploration application wherein by default, the unexplored part of the map should be colored (overlayed?) as gray or black.... As of now, I already got the solution for getting the location via GPS then storing it in an internal database.
My Question is that how can I set the color of my MAP into Gray or Black by default?. i have here an image of a similar Application called UMBRA... too bad I can't post pics yet, so ill just give the link instead.
Umbra Application

Categories

Resources