Google Maps and Google Maps directions icon - android

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

Related

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)

Here API icons customization.

I'm using here Android SDK and try to customize my map. I wondering, can I change map icons somehow? I mean such icons at the map:
I can change CategoryIcons from here api search, but didn't find where to change the map icons.
These icons are baked into the core resource library. It is not something an external developer can change.

how to embed a custom map from google maps into an app

I created a custom map using Google Maps that has highlighted features of the local waterways around my boat company. The map is set to be shared publicly and can be found here: https://www.google.com/maps/#28.1159901,-80.5874005,10z/data=!3m1!4b1!4m2!6m1!1sztQRD4WV85yk.kzRrtK6ZMD3E
My question is can I embed this map on an app that I am developing through Como Mobile App Creator? The app already has a map page powered by Google maps but it just shows the location of the company on a standard Google map; I want to embed the custom map I created so that it shows up in the app.
The Como App Maker also features a custom page wherein you can add source code, and I got the source code from Google maps and tried to add it in there but the custom page just shows up blank in the app. Here is the source code I used: iframe src="https://mapsengine.google.com/map/u/0/embed?mid=ztQRD4WV85yk.kzRrtK6ZMD3E"width="640" height="480"
How do I embed my custom map on the app I am making?
One reason I can see is: mapsengine is deprecated and new mapsengine projects are not accepted anymore.
Potential solution steps:
1) Use My Maps instead of Maps Engine.
2) Create custom map by importing your map layer there.
3) Save that map and go to share. Make it public (pick & choose view only or can edit).
4) Click on options (drop down) menu on the right of where "Add Layer" and "Share" are and choose "Embed on my site". You will be provided with an iframe.
This will embed that custom map you just created in your app.
Few things to keep in mind:
My Maps are ideal only for
1) Less than 2500 map views per day.
2) The data in the map does not change very frequently.
3) However, the embedded map will reflect the changes (if any) made (by you or people who has edit permissions) to the map in My Maps.
EDIT:
I'm sorry I did not check the URL before. So I went to it now and loaded it in My Maps. I got this iframe. See snippet.
<iframe src="https://www.google.com/maps/d/embed?mid=ztQRD4WV85yk.kzRrtK6ZMD3E&hl=en" width="640" height="480"></iframe>
But I would still encourage to make it in My Maps if this one was made in mapsengine so it is still there after mapsengine is stopped altogether in January 2016 (see Deprecation notice here).
Hope this helped.

How to place my own icons for google default icons in map?

I am trying to make an app that could identify nearby bus stations. Google map has a specific icon to denote them. I some how wish to place my own icon above google map's default icon using overlay or something else.
How I can do this ?
Thanks in advance.
This tutorial will teach you all you need to know about how to add your own custom icon.
https://developers.google.com/maps/documentation/android/hello-mapview
It teaches you every part that you need to know from how to add the icon to how to have it relate to your map view.

Standard icon for current position/location

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.

Categories

Resources