How to set Terrain View in Map View in android? - android

I want to display terrain View in MapView
There are mapView.setSatellite(true|false) mapView.setTraffic(true|false) mapView.setStreetView(true|false) in MapView class as I found.
There is no method to set terrain view.
but in the default MAP application comes with device. display Terrain View.
How can I achieve it.
Please suggest.
Thanks

Thats cannot be done with Google Maps SDK provided to android for now.

Related

How to get maps rendered inside of a CardView

I'm wondering how to get the map to appear inside the CardView, like in the images below, highlighted in pink.
On the left is Strava, it shows the map with the route highilghted. On the right is Google Calendar, it has a map of the location of the calender event.
I would really appriciate some pointer on where to look in the apis to achieve this.
Regards,Luke
You need to use a MapView to achieve this.
This is part of Androids Lite Mode.
Create your card, and add the MapView inside the CardView.
Then in your onCreate(), you create the actual map and set the MapView to display that map.

Android Maps V2: Custom info window at custom position or work around?

I'm able to show custom info window but not like iOs maps at diffrent position. Is there any way or workaround to show info window like this?
And can I make that show direction clickable?
You can place a normal View (or some ViewGroup in this case) on top of the map and move camera, so that Marker is placed where it looks like is pointed to by this View.
No native (using Google Maps Android API v2) way currently, but you may track this gmaps-api-issue for when it will be possible.

GoogleMap ap on Android - Creating an Overlay

I am creating an Android application which uses GPS to show an user their current location.
I have this part of the application working and the location shows up on map view but I was wondering how do I go about adding a marker on the location? I understand it has something to do with creating an Overlay but am unsure how to go about doing this.
Also I wish for assistance in adding a zoom in/out control button.
Many thanks.
Check the following Link
http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/
not only you can draw anything on the map you can animate the view as well. using this i implmented drop pin effect as that of IPhone in Android
Using Canvas and onDraw Method is tough but the best and core way to handle things.
Hope it helps :)
You can use this project to achieve that you want:
mapviewballoons
Hope this helps.

Android SDK mapView. Get map zoom level/position

I have the map working on android and am able to populate it with overlays.
But the overlay ability is only so good. If I add too many overlays and refresh too often, I can create an app that is very processor-hard (useless).
What I want to do is only load the overlays that are within the zoom level of the map.
How to I get at what level the map is zoomed using Google APIS, overlays, itemized, and geopoints?
Thanks,
You can use the getZoomLevel and getMapCenter methods on MapView. You might also read through the MapView class documentation.
You can directly get that from class without any method.
map.getCameraPosition().zoom

Android MapView without location labels

I want to use MapView control in satellite view mode but i don't want to show location labels on it i.e, I want blank satellite view of map in which name of places are not shown.I have searched web a lot but couldn't find a way out.How can I achieve this.Thanks in advance...
The images provided to the MapView from Google have that data built into it, it#s not an overlay and there is no option to get it without. So you can't.

Categories

Resources