How do I disable 3d buildings with Google Maps Android API v2 - android

I recently started using the Maps Android Api (V2) and am integrating with a custom tile overlay. I am successfully able to add overlay images, however they look goofy when super-imposed over a 3d building. I would like to be able to turn off 3d buildings globally or for specific buildings so that my tile images do not interfere with the 3d images. What is the best way to accomplish this?

It seems they changed their behaviour again to disable showing 3D Buildings:
GoogleMap.setBuildingsEnabled(false);
GoogleMap Android Reference

It looks like Google corrected the problem. 3d buildings no longer show up when I draw an overlay on top of them.

Related

How to see a Google map in 3D mode?

I'm creating an Android/iOS app with React Native and I want to show street in 3D mode, the
same as screenshot 2.
How can I do that?
You can simply use the map method : animateToViewingAngle(angle). https://github.com/react-native-community/react-native-maps/blob/master/docs/mapview.md
Native google map for iOS (objective-C), android (Java), and airbnb map, too, they have "3D-map" feature by default, of course!
Besides, it actually depends on the zoom-level that you will see the buildings in 3D (but you also need to make the map "inclined" - by using 2 fingers and move forward/backward to see the sides of the buildings ^^)

Add 3D object to map and pan around it

I am trying to make a Pokemon GO clone (educational work) and I know there are several possible ways to style the Google Maps using layout tricks or MapBox. My biggest challenge is to add a 3d object/model to the map and using gestures to zoom and pan around my character.
Somehow the camera should be fixed to the object (marker?) and panning/zooming should be disabled on the map but the gestures should rotate the camera around the character. I was wondering if someone can shoot me in the right direction on how to implement such feature using the native Android SDK and Google Maps/MapBox
Since Pokemon GO is not using Google Maps, I am wondering how they implemented their own map stuff, but this is outside the scope of this question.
(I am not looking for a paid solution such as here.com or nutiteq )
Mapbox Android SDK doesn't currently support 3D object, In this use case, i'd recommend using Mapbox alongside Unity instead which is made for these purposes. Here's a great blog post showing off how to do this.

Android google maps with 3D markers?

I'm a beginner in Android development.
Trying to make an app with 3D markers on a google maps, but obviously only able to do flat or regular markers.
is there a way to make 3D markers / models somehow?
Maybe an invisible layer of canvas above the map or another map service other than google?
Thanks!
I wrote an article about that on Medium. You can check it out, it's a long explanation. But basically, you can use a layer above the map with sprite animations :p
https://lucasrodriguesgui.medium.com/rendering-and-animating-3d-markers-using-android-google-maps-sdk-3dfd0d597a2a

Any way to change the Map used by Google Maps API in Android?

I'm trying to make an Android application that will display a map of a local area only (a big building and surroundings), and I want to know if it's possible to take the Google Maps API and modify the map it's using to be the map I made myself.
If this cannot be done, I will ask my question in a broader sense: How can I create an interactive map app for Android that will use an image made by myself?
I want to know if it's possible to take the Google Maps API and modify the map it's using to be the map I made myself.
Not through the Google Maps add-on for Android.
How can I create an interactive map app for Android that will use an image made by myself?
The same way you implement 2D games: draw it yourself, probably using the Canvas 2D API.
It is possible that there is a third-party library for handling this. For example, you might peek at the OSMDroid code, as that is open source and handles map tiles coming from OpenStreetMap. In theory, one should be able to create a general purpose "map" widget with pluggable tile sources, where the widget handles pan, zoom, etc.
I note that you have the app-inventor tag on this question -- App Inventor is going to be incapable of doing this any time soon.

How do i implement falling pins animation for markers in android map view

Is there any way to implement falling pins/markers animation for google maps in android like that in iPhone ???
Android has overlay markers (see ItemizedOverlay) that make it easy to add images to maps, BUT note that, in my experience at least, animated images do not work when added to overlays.
I found it necessary to add a View on top of the MapView, and add imagery to that, and I've successfully added animated drawable images to the map using that approach. For more details see here:
Can I use AnimationDrawable in an overlay on a MapView?
But to be honest, you should remember that it's Android, and copying every little feature from iOS is unnecessary. Google Maps on Android doesn't use a pin marker, it uses a static blue spot - I'd say it's best to replicate that and remember your users are Android users, not iOS users - they want consistency across Android apps.
You could have a look in this docmentation: https://developers.google.com/maps/documentation/javascript/overlays
Here is an example map.
Just add this in your code:
marker.setAnimation(google.maps.Animation.DROP);

Categories

Resources