Android google maps with 3D markers? - android

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

Related

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.

Showing a lot of points on Google Maps Android v2.0

I have a lot of points to show on Google Maps Android. I decided to draw them on the map by drawing circles with small radiuses. However, I noticed that drawing a lot of circles (around 1000) is very slow and the app does not respond well, even when the drawing is made in an AsyncTask.
Any ideas how to get around this?
The best way is to only plot what you can see on the map and when the map moves get the new points you can see so that you eventually dont have to plot anymore.
You can also look into clustering where if you have a bunch of markers in a certain area you can indicate a group of markers by just plotting one marker
this link goes over the different method you can use
https://developers.google.com/maps/articles/toomanymarkers
Consider using Markers instead and one of the clustering libraries freely available:
Android Maps Extensions
Clusterkraf
Android Maps Utils
If you are convinced you want to use Circles, you may try to use one of the libs and modify code to group Circles.

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

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.

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.

Integrating Google Maps data to a game. How?

I have a Game idea which uses Google Maps data, and I wanna know how I can do this.
The idea is:
A online war game that is based on the localization of the players' phones, which I would use Google Maps to get the cordinates and draw the map on the screen, so I can draw icons on the map (ammo, medicines and etc). And when the player's cordinates meet the item's cordinates it goes to the player, for example.
Simplifying, what I have in mind is: I need to get player's cordinates and map images from Google Maps. How I can do that?
Sorry for the bad english.
Thanks,
Luís Henrique.
I recommend starting with this tutorial.
http://www.vogella.de/articles/AndroidLocationAPI/article.html
That will get your feet wet in loading up maps.
Then use this tutorial at the bottom it will reference itemized overlay which will enable you to add all the weapons and respond to events when you click on it.
http://developer.android.com/resources/tutorials/views/hello-mapview.html
Your game sounds fun!!!
You can check cloudmade's specialist tools
Also there is static maps api from cloudmade
U can check a list of apps/games made using this here

Categories

Resources