Multiple marker on map - android

I want to show multiple users through markers on map. I want my location should be in center with marker and others are around me. I want to show different image marker for every user. I dont want to use same image for all the user's.
Any tutorial would be a great help.

You can use these tutorials and use custom Images for each user
Google Map View
Android: Double Taps on a MapView with Overlays

Related

Fixed marker on google maps for android

I want to put a fixed marker in the middle of the screen where my map is located, and that marker will give me the other marker information that is nearby and provide me the neighborhood information where the marker is. Is this possible ? How can i do that ? I see a lot of apps having this functionality.
Edit:
where Should i use mMap.getCameraPosition().target Method? on CameraMoveListener?i want when CameraMove stopped this method starts
Answer Use this Method on mMap.setOnCameraChangeListener
You need to use Relative or FrameLayout and put one Marker ImageView in center of the screen.
Considering that the whole screen is of Mapview.
Now to get the centerpoint latitude and longitude you can use
mMap.getCameraPosition().target
That will be the exact position of your centered ImageView.
You can achieve Uber like location picker in same manner.

How to know if markers on the map touch each other

I am building an application which uses Google Maps. When displaying the map, I'm also adding markers. Is there a way to see if there are 2 markers that touch each other, meaning if a part of a marker is on top of another marker? My goal is to be able to find that out and then make them a single bigger marker instead of 2 different markers.
The answer should depend somehow on the marker's icon size and the current map zoom since if I zoom out, there's a bigger chance they might overlap.
There seem to be a library made by Google which clusters a set of markers together automatically when they are close to one another.
The library is the marker clustering utility and instruction can be found here:
https://developers.google.com/maps/documentation/android-api/utility/marker-clustering

Load a fake map on osmdroid map in android

I need overlay an map image on a MapView, which will hide the the real map from the user
when user offline i want to show fake map instead of
Thanks in advance
Besides photoshop, you can put a basic image view on top of the map, but it wouldn't react the same way the map does to touch inputs. Not sure what goal is. If you want offline maps, there's always this
https://github.com/osmdroid/osmdroid/wiki/Offline-Map-Tiles

Custom pin point on Map api v2

In my app I implemented the map fragment inside a fragment. I would like to show pins on the map. I know the simple way of putting the marker on the map is easy.
However in my app I have to save all their information I have to use,two different pins , for example for girls the icon would be pink and for boys the pin would be blue.
Now I want to put some other information for example the id, name and status, age, game, latitude and longitude and so on. I do not want to show all of this information when user click the pins. I want to show the information in a new activity which would get open user click.
Please help me, how can I share the information of each marker completely and then, when the user clicks the marker the new activity should open and show related information. I have searched many tutorials on this topic prior to posting my question.
This should be useful http://googlemaps.github.io/android-maps-utils/
It has:
Marker clustering — handles the display of a large number of points
Heat maps — display a large number of points as a heat map
IconGenerator — display text on your Markers (see screenshot)

How to make an overlay over map

I want to create an overlay over map so that when map is scrolled the center/marker will be fixed and i can get Location data from that point.Take a look at image for what i want to achieve.
I google a lot Please Suggest me little how to achieve this functionality.I don't think it's possible using ground overlay.

Categories

Resources