google-maps-api-2

How to fix the new issue “No virtual method zzts()” about Google map (Android)

白昼怎懂夜的黑 提交于 2019-12-02 14:41:19
问题 I have this issue in google-maps-api-2 (8.3.0) for Android app. Please help me fix it. Thank a lot. java.lang.NoSuchMethodError: No virtual method zzts()Lcom/google/android/gms/dynamic/LifecycleDelegate; in class Lcom/google/android/gms/maps/SupportMapFragment$zzb; or its super classes (declaration of 'com.google.android.gms.maps.SupportMapFragment$zzb' appears in /data/app/com.kerofrog.tribezen-1/base.apk) 回答1: Use play service maps 8.4.0 will fix it compile 'com.google.android.gms:play

Open and Close InfoWindow onclick

空扰寡人 提交于 2019-12-02 10:15:10
Can anyone help me code inside my eventListener so that an infowindow will do the following: open if it's currently closed, and close if it's currently open. I've tried the following to no success... google.maps.event.addListener(marker, 'click', function() { if(infowindow.closed == true){ infowindow.open(map, marker) } else{ infowindow.close(map, marker) } }) You can use something like this: infoWindowClosed = true; google.maps.event.addListener(marker, 'click', function() { if (infoWindowClosed) { infowindow.open(map, marker); infoWindowClosed = false; } else { infowindow.close(map, marker)

Android - Deletes R.java file when importing google-play-services-lib

与世无争的帅哥 提交于 2019-12-02 08:17:58
I am working on a project in which I want to show a Map, for that I want to add google-play-service-lib but when I add it my R.java files gets deleted and not getting regenerated. I tried adding google-play-service-lib into build path. After adding everything goes ok. But, when I run the project it gives an error says, java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable And when I add it into the project, R.java gets deleted. I tried number of permutations and combinations which I found on google and SO . But there is no feasible solution, which solves my problem. Please help me

Drag Polyline onMarkerDrag Android Google Maps v2

冷暖自知 提交于 2019-12-02 06:39:46
问题 I'm currently developing an android application that would allow users to draw Polylines with Markers on the map. Right now, I would like to implement a feature whereby the polyline will be draggable whenever the marker is being dragged and update the Polyline when the onMarkerDragEnd() method is being called. Does anyone know how I can achieve this? Below is a snippet of my codes. Thanks! googleMap.setOnMapClickListener(new OnMapClickListener(){ @Override public void onMapClick(LatLng point)

Google Maps v2 to v3 API wrapper working in Chrome but not in Firefox / IE

假装没事ソ 提交于 2019-12-02 00:50:50
Google announced that after November 19th, a Maps v2 to v3 wrapper would be deployed: On November 19, 2013 we will deploy a JavaScript wrapper that attempts to automagically turn remaining v2 maps into v3 maps. Though we expect this wrapper to work for most simple maps, we cannot guarantee that your maps will continue to function. We therefore highly recommend that you migrate to v3 before November 19. The good news is that Google Maps JavaScript API v3 is more robust and feature rich than v2, and we’ve written a guide to assist the migration. This seems to work with simple maps in Chrome 31,

Google Maps Android v2 Authorization failure

左心房为你撑大大i 提交于 2019-12-01 23:59:54
问题 I am testing the sample google code on an actual device having 2.3.6.I thought it might be the problem with the key ,so I created different key on a different account through Google's API Console.Still the same problem "Google Maps Android API-Authorization Failure". Here is the log: 12-07 10:31:30.476: D/dalvikvm(17791): DexOpt: couldn't find field Landroid/content/res/Configuration;.smallestScreenWidthDp 12-07 10:31:30.484: W/dalvikvm(17791): VFY: unable to resolve instance field 24 12-07

Google Maps Android v2 Authorization failure

僤鯓⒐⒋嵵緔 提交于 2019-12-01 21:43:30
I am testing the sample google code on an actual device having 2.3.6.I thought it might be the problem with the key ,so I created different key on a different account through Google's API Console.Still the same problem "Google Maps Android API-Authorization Failure". Here is the log: 12-07 10:31:30.476: D/dalvikvm(17791): DexOpt: couldn't find field Landroid/content/res/Configuration;.smallestScreenWidthDp 12-07 10:31:30.484: W/dalvikvm(17791): VFY: unable to resolve instance field 24 12-07 10:31:30.484: D/dalvikvm(17791): VFY: replacing opcode 0x52 at 0x0012 12-07 10:31:30.484: D/dalvikvm

The Google Play services resources were not found. Check your project configuration to ensure that the resources are included [duplicate]

99封情书 提交于 2019-12-01 16:01:51
This question already has an answer here: LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included 22 answers Whenever I try to run the Google Map API v2 project it shows the following error "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included." Actually I was trying to add a marker to a specific location whenever clicked on a List Item but I don't see any markers instead I get the App stopped working message in the device. I then

Google Map is not loading due to inflate exception

戏子无情 提交于 2019-12-01 13:01:24
问题 I am using Google Maps v2 in my application. The key is correctly generated, all the permissions exist in manifest. I followed the tutorial of Google Maps v2. I followed each and every step but it's not working. Please Help Log 03-04 01:25:23.145: E/Trace(19467): error opening trace file: No such file or directory (2) 03-04 01:25:23.293: E/AndroidRuntime(19467): FATAL EXCEPTION: main 03-04 01:25:23.293: E/AndroidRuntime(19467): java.lang.RuntimeException: Unable to start activity

Color variations Polyline property in Google maps API

社会主义新天地 提交于 2019-12-01 12:25:32
问题 I have requirement such that I need to draw a line between Sydney, Melbourne and Adelaide and the line between Sydney and Adelaide should be dark in color and the line between Melbourne and Adelaide should be lighter . Is it possible in current API to provide this functionality in a single object: new google.maps.Polyline({ }); To achieve the functionality? 回答1: One option would be to create google.maps.Polyline object per every line, below is provided the modified example from Simple