google-maps-api-2

How many maximum markers add in Google map in android?

心已入冬 提交于 2019-12-11 13:04:41
问题 I am working on a project which is include Google map & routes. In this App 2 or more markers & routes between them. So how many markers i add on Google Map & how many way points? I found the solution. Is there a limit on how many markers I can put on a google maps route? But i want this information for Google Maps API V2.Is this information same as a Google map API V3? If some limited waypoints are provided by google then how to upgrade? 回答1: Google has also provided Marker Clustering

Google Map not working in Released apk

情到浓时终转凉″ 提交于 2019-12-11 10:51:49
问题 I am creating an android app using Google Maps Api v2 targeted for Android Api 16+ compiled using Api 23. I am having a strange problem. When I tested the app on my phone; installing through Studio's Run button, It work perfectly fine, but when I released an APK and installed the app from the APK on my phone, map does not work. Only a dark grey color loads in the map fragment. I am using the default template provided by the AndroidStudio to create the Map. Please, let me know if you require

Is it possible to get list of City between City A and City B in Google Maps

雨燕双飞 提交于 2019-12-11 08:49:37
问题 I want to get list of cities between City A and City B in Google Maps. Is it possible ? because I cannot figure it out how to do it when I look at the Google Maps API 回答1: No its not. You would have to do some reverse geocoding of a bunch of lat/lngs in between the cities. 来源: https://stackoverflow.com/questions/5774706/is-it-possible-to-get-list-of-city-between-city-a-and-city-b-in-google-maps

how to move single marker in google maps v2 android?

旧街凉风 提交于 2019-12-11 08:27:42
问题 I added a lot of markers in google maps v2 android, I use a hashtable to store the id of each marker, and the results I could make customwindow and so on, but the problem is I want to delete / move the marker based on the id. This my code to create a marker, I parse data from json private Hashtable<String, String> markers; markers = new Hashtable<String, String>(); private void createMarker(String result) throws JSONException{ jObject = new JSONObject(result); JSONArray menuitemArray =

how to get total distance and duration between two location along with waypoint in google map

孤街醉人 提交于 2019-12-11 07:22:13
问题 i want to get total duration and distance between two location along with waypoints. the methodwhich i'm using is giving me distance and duration but without waypoints. so can any one help me? my method look like below... public String getDistance(final double lat1, final double lon1, final double lat2, final double lon2){ Thread thread=new Thread(new Runnable() { @Override public void run() { try { URL url = new URL("https://maps.googleapis.com/maps/api/directions/json?origin=" + lat1 + ","

android locationListener not working?

只谈情不闲聊 提交于 2019-12-11 02:26:43
问题 I am having trouble using the loactionListener in eclipse for android. I have been googling for a while now an I can't seem to see why this shouldn't work. The only thing I can think of is that maybe it is because my testing device has no sim. (the internet is provided via wifi). I have used this as a reference and still, nothing. Could anyone help me with this problem. here is the relevant parts of my activity: public class MainMenu extends Activity implements LocationListener{ @Override

StreetView gyroscope functionality

ε祈祈猫儿з 提交于 2019-12-11 01:44:43
问题 In the official Google Maps application when a user rotates the device, StreetView is rotated. I made a research and didn't find how to enable gyroscope functionality in Google Maps v2 API for StreetView. I can implement this by myself, but maybe there IS such functionality and I just haven't find it? 回答1: There isn't any built-in features in StreetView to enable this functionality. If you would like to do it by yourself you can check following links: Set the camera orientation point of view

NullPointerException using SupportMapFragment

杀马特。学长 韩版系。学妹 提交于 2019-12-11 01:34:49
问题 I'm trying to resolve this issue for some days. I'm vorking with GoogleMaps and SupportMapFragment. When I launch my app, log show this error and my app crash. Here is my log cat: 12-05 11:16:03.437 6931-6931/it.home.dressgallery E/dalvikvm﹕ Could not find class 'android.app.Notification$Builder', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.showErrorNotification 12-05 11:16:08.406 6931-6931/it.home.dressgallery E/dalvikvm﹕ Could not find class 'android.app

How to get fragment from the view for Google Map v2

此生再无相见时 提交于 2019-12-11 01:33:59
问题 I have my android application which was using Google Map API v1 key and it was working fine. Now I need to give my code to my professor and show him the working demo from scratch on a new desktop machine. So that means, now I cannot use Google Map API v1 key anymore so that is the reason I needed to make some changes in the code that I have for Google Map API key v1 so that it can be used with Google Map API v2 key . I am trying to show google map on top half of the android screen and in my

App shows grid screen instead of google map

感情迁移 提交于 2019-12-10 20:19:42
问题 I am trying to get a basic map application to work but, I am getting only the grid screen. Code: 1.ActivityMain.java import android.os.Bundle; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; public class MainActivity extends MapActivity { MapView mapView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mapView = (MapView) findViewById(R.id.map_view); } @Override