google-maps-api-2

How can get google map v2 api key for teamwork

巧了我就是萌 提交于 2019-12-10 17:19:36
问题 Sorry my english not good I have a probleam with google map api v2 key. I work with my team. and we need just a one api key for us project (android project). is it posible? or all member of my team must generate api key to run google map ? 回答1: You can share the same API key, provided that you're signing the app with the same .apk signing key. By default the debug.keystore that is used for signing debug versions of your app is auto-generated by the tools and it's different for each

Google Maps API V2 google-play-services_lib.jar missing

孤人 提交于 2019-12-10 16:57:17
问题 I just imported an example of the google map api V2 for android to test. It's missing the google-play-services_lib.jar . I can't find this library. Where do I get it? 回答1: First check that your sdk contains Google Play Services installed or not. For that you do the below steps In Eclipse--->Window--->Android SDK MAnager--->Check Google Play Services installed in extras. Then you add the google plays services jar by find that one at the below location your-android-sdk\extras\google\google_play

Is it possible to use markers on street view in android Google maps API v2?

无人久伴 提交于 2019-12-10 16:27:47
问题 I implemented the street view in my app and i want to see the map markers in street view, it is possible? 回答1: Nowadays Android Google maps API v2 can´t add markers, this option is only available for iOS. Markers within Street View https://developers.google.com/maps/documentation/ios/streetview#markers_within_street_view 回答2: It's possible to add markers to StreetView in Android via a custom implementation. You should put a transparent SurfaceView on top of your StreetView , Pass panorama.

Finding road distance between two coordinates in google map android

谁说我不能喝 提交于 2019-12-10 12:18:37
问题 I am using the following piece of code to find the road distance between two sets of coordinates in android: public String getDistance(double lat1, double lon1, double lat2, double lon2) { String result_in_kms = ""; String url = "http://maps.google.com/maps/api/directions/xml?origin=" + lat1 + "," + lon1 + "&destination=" + lat2 + "," + lon2 + "&sensor=false&units=metric"; String tag[] = {"text"}; HttpResponse response = null; try { HttpClient httpClient = new DefaultHttpClient(); HttpContext

Android map v2-Get marker position on marker click

丶灬走出姿态 提交于 2019-12-10 12:17:55
问题 How to get marker item position on marker click just like in ListView's itemclick? ok i got the answer @Override public void onInfoWindowClick(Marker marker) { // TODO Auto-generated method stub System.out.println("onInfoWindowClick method calling and marker position is "+marker.getPosition()); String title =marker.getTitle(); for(int i=0;i<CommonUtilities.CoffeeShop_array_list.size();i++){ String s =CommonUtilities.CoffeeShop_array_list.get(i).Title; if(title.equalsIgnoreCase(s)){ **marker

Google Maps v2 - Intent URI Arguments

岁酱吖の 提交于 2019-12-10 11:55:21
问题 I'm launching the builtin Maps app (7.1.0) via an Intent, however none of the request url's I'm sending it seem to be working. I was wondering what the correct syntax is for the url/uri argument. I thought it was a static-map request, but the built-in map app isn't a static map, and is probably why they do not work. The older style v1 request strings do not work either. Is it even possible to send requests to the map app via a url/uri intent argument since v2 ? Any help or tips would be

Overlay an image on google maps android api v2

最后都变了- 提交于 2019-12-10 11:21:48
问题 I am trying to use GroundOverlay to add an image to my map. I'm working with the example from https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/model/GroundOverlay which is given like this GoogleMap map = ...; // get a map. BitmapDescriptor image = ...; // get an image. LatLngBounds bounds = ...; // get a bounds // Adds a ground overlay with 50% transparency. GroundOverlay groundOverlay = map.addGroundOverlay(new GroundOverlayOptions() .image(image

“Unfortunately Google Play Services has stopped” but map works fine

北城以北 提交于 2019-12-10 10:29:51
问题 I followed steps in the developers guide in programming google maps. My API keys are fine. I also installed apks so that i can run the map application to the emulator. As i run my android emulator, an error "Unfortunately Google Play Services has stopped" pops up. But the thing is the map works fine after you just click OK. I just copied all the codes from the beginners guide provided so no need to copy my code here. Anyone knows the problem? thanks 回答1: UPDATE I think I've found a possible

How to color countries using google maps?

牧云@^-^@ 提交于 2019-12-09 05:40:58
问题 I need to color different countries in the world based on a Range (eg: population) Red : > 100 million Green: 50 - 99 million Ash : < 50 million How can this be done. My development environment is Rails3. Please help I will attach a sample image how the map should look 回答1: Use Google Charts API, not Google Maps API. It has a chart type of map which will allow you to very easily plot data by country and color-code them, e.g. http://code.google.com/apis/chart/interactive/docs/gallery/geochart

How to create circle in google map v3 with same radius in all zoom level?

余生颓废 提交于 2019-12-09 04:18:14
问题 I am working on map code migration from v2 to v3. In v2 i have create circle with help of GProjection and Overlay and it will look same size in all zoom level. In v3 google gives Circle class that will create circle in map but it will change in different zoom level. I want to create circle that will have same size in all zoom level. I want to know any other way in google map v3 by that i can create circle with same size for all zoom level. Thanks in advance. 回答1: To create circles that are