I want to use satelite view and street view in my addLocation Activity..which method Should I call for satelite view and street view...`
public void onClick(View v) {
// AddLocationActivity.this.mapView.setSatellite(false);
…
I need to bind multiple markers in a google map circle. I am calling following method from onMapReady to load markers:
void addMarker()
{
mMap.clear();
for (int i = 0; i < response.getData().getCount(); i++) {
float lat =…
I have been working on google maps and want the user can access location using geocoding, although it is working but the problem arises when the user enters invalid location or null location in edit text, my app gets crashed.
This is my code: (on…
I'm trying to add an image to a Google Map using the Google Maps Android API v2:
mMap = googleMap;
LatLng sw = new LatLng(47.01377857060625, 8.305519705172628);
LatLng ne = new LatLng(47.01395211967171, 8.306270482717082);
LatLng nw = new…
There appear to be a number of similar questions on this subject, but they either use a different programming language (I am programming with Java) or don't answer my question.
I am using Android Studio to create a Google Maps application. I would…
I have a SupportMapFragment and I am trying to draw a user drawn line, exactly like here, I am trying to use this questions accepted answer using Alternative Method #2, which seems to allow you to put the SupportMapFragment in a FrameLayout.…
I am trying to restrict the user going beyond the specified city boundary. In leaflet I have achieved this with maxBounds property of map object or with setMaxBounds function by providing southwest & northeast points., this way it limits…
I am trying to check if map centre is inside a polygon or not. My code for creating mulitple polygons on map is this:
for (int i = 0; i < Constant.arr_zone.size(); i++) {
LatLngBounds.Builder builder = new LatLngBounds.Builder();
…
I try to create a polygon to cover an area with these code:
map.addPolygon(new PolygonOptions()
.add(new LatLng(-7.542257, 110.446209), new LatLng(-7.557232, 110.420116), new LatLng(-7.580375, 110.400890), new LatLng(-7.592626,…
Hello i would like to ask if its possible that the convert the Strings Distance by giving the google map directions and I will convert it to decimal point?
DecimalFormat df = new DecimalFormat("#.##");
Log.e("DISTANCEHECKER", "" +…
How to make fade animation when new new default tile loads?
For eg: if zoomed in, how to fade out the previous tile (of low zoom) and fade in new tile(of high zoom)?
Another eg: If a double tap on some position, it should fade out the tile and fade…
I'm making a Google Maps Application which one of the functions is to generate maps from user traveled distance. I do this by adding PolyLines to my map fragment so the user can see the path he just traveled. However, after the user is done…
I am trying to use google maps api v2 to log the location of the user and store it into a SQLite db. I have managed to do this. But now the problem occurs as my location data is only being logged once. Once the user presses a button, the location is…
I have an Android app which captures lat-longs every 15 seconds and we use this bunch of lat-longs to find road distance between origin and destination (first and last lat-long sorted by time stamp).
Actually this app is for a client who runs mini…