Overlay image google maps - android

In my app I added the map of Google Maps and you can navigate within a given area (which can not be done through maps as it is not drawn). Now I would like to customize the map and add image overlays to the buildings so as to better target people. Let me explain with an example:
In the picture is the image of the building that I customized.
Now I want place the image over the google map. I saw that there GroundOverlay but I can not place it properly.
Does anyone have any tips?

I would recommend using Polygon Shapes instead of Images. Working with Images like you intend to do, would probably be very hard later on.
You might want to look at:
https://developers.google.com/maps/documentation/android-api/shapes

Related

How to use custom tiles in the OpenStreetMap?

I am trying to create an offline map for my Android application. I'm hoping that the MapView I use will be able to have my tiles as an overlay. To do this, I have begun looking into using Mapsforge and trying to figure out how to use my own maps. It seems that you need OpenStreetMap data, and I am not sure how to create this for the tiles I already have. OpenStreetMap's wiki talks about it here, but I haven't been able to decipher it.
To be clear, this is what I have so far:
Original map image.
Tiles for that map image.
Coordinates I want to use for the bound box.
I'm just not sure how to go from that, to a map which Mapsforge can use... Thanks for any help!
Edit: I also have a .kmz file for this custom map, but that can only be opened in Google Earth, not on an Android device, I think.

How do take an existing map and overlay it into google maps on the android platform?

I am working on making a interactive campus map. I am wanting to take an image (below) and overlay it onto Google maps and then add interactive points of interests. I am not seeing how to add or merge the image to the map. Can this be done? Are there any examples out there I missed?
If you want to replace the google map background.
From my experience, I could say no. It can't be done
But if you want to make it like transparent you can put Your map on top of google map and just set transparent.
However, somebody already been done this before. you might got some idea if you see this
http://www.maplib.net/
http://lifehacker.com/213627/embed-any-image-into-a-google-map
Google Maps Developer Documentation

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);

Using a large PNG over google maps API

I have a large PNG that I want to use as a map, but I want to be able to put a location marker on it to tell the user where they are.
I'm really new to android development so how could this be done? Explanation or links would be nice, and I'd like the map to be scrollable as well.
Thanks in advance!
I'm guessing that you want to overlay an object (in this case a PNG image) on the Google map? If this is what you are trying to do, have a look at the documentation. There is also an example here.

Google Maps API map cutomization

I saw these maps in the websites of some universities and I just loved them:
http://www.uottawa.ca/maps/
http://www.washington.edu/maps/
http://map.nd.edu/#/placemarks//zoom/16/lat/41.6993288511065/lon/-86.23415926449582
I would really like to do something like that in an Android app. I've been looking for a way to do it but I've found no clue. Since I'm new to this API I feel quite disoriented.
So, could you please point me in the right direction? Give me some hints, somo tutorials or whatever you think it can be useful.
You can get the mapview easily enough using the Google Maps API. Then you need images of whatever buildings you are proposing to put on the map. The images can be added to a map overlay which will appear on top of the map. The tricky part then, is to match the geo-coordinates of your buildings to the map so that when a user scrolls the map, the images move as well and also to scale the images as the user zooms in and out.

Categories

Resources