google-maps-api-2

Android Geofence only works with opened app

萝らか妹 提交于 2019-12-29 03:23:40
问题 I'm doing a serious research on this topic for many days... I saw many topics here too... But unfortunately I couldn't find a solution.... I'm writing an app that uses the new Google API for Geofence... Well, I can handle "ins" and "outs" of a geofence, but only if my app is open! Even if I'm with wifi on, gps on, and 3G on, but the app, it does not trigger any event...Just if the app is open... I'm using exactly the same GeofenceRequester class of the documentation http://developer.android

How to Search in Google Map Api V2 Android?

只谈情不闲聊 提交于 2019-12-28 13:35:12
问题 I'm developing an Android application and using GoogleMaps API v2. This application works so far but I want search in the map with a path: Screenshot : my codes: Position_mark = new LatLng(35.7008, 51.437); map.moveCamera(CameraUpdateFactory.newLatLngZoom(Position_mark, 15)); map.animateCamera(CameraUpdateFactory.zoomTo(10), 2000, null); map.setOnMapClickListener(this); map.setOnMapLongClickListener(this); map.setOnMarkerDragListener(this); ... @Override public boolean onCreateOptionsMenu

Google Maps not loading after publishing on play store even after updating SHA 1 fingerprint for release key

隐身守侯 提交于 2019-12-28 05:46:06
问题 A newbie here to google maps api and android app development. I am facing some strange issue and struggling with this from two days. I have developed an app in which I have used Google maps. I have launched the app to play store. The google map loads perfectly fine when I install the signed apk directly to mobile but not when I install through play store. I have updated google maps api console with release key SHA 1 fingerprint. I am not able to find any solutions online also and did not get

Google map comes partially, grey area comes instead of images from google server

丶灬走出姿态 提交于 2019-12-28 01:53:13
问题 Sometimes google map comes partially with other area getting grayed out. There is one catch, if we start Firebug, images do come in that gray area. Dont know why this is happening. Anybody ever experienced this and found solution, Please share. 回答1: This bug can occur if you are resizing the map's DIV . After resizing, try to call gmap.checkResize() function. 回答2: If you are using v3 try google.maps.event.trigger(map, "resize"); Also take a look at here 回答3: Hi if you are using toggle in a

Move markers in google map v2 android

回眸只為那壹抹淺笑 提交于 2019-12-27 11:39:09
问题 I am doing map clustering in Android Google maps v2. I just want to animate the marker from one geopoint to another. Is there a way to move a marker in Google maps v2? 回答1: There's one example of moving marker in google map v2 demo app .. in the sample of the play library!! I have looked into that!! here the code for moving an marker : -- > public void animateMarker(final Marker marker, final LatLng toPosition, final boolean hideMarker) { final Handler handler = new Handler(); final long

GDownloadUrl is not working on Chrome

强颜欢笑 提交于 2019-12-25 18:38:00
问题 This is inside a Drupal site. I sent an Ajax request using GDownloadUrl using the following code. I got this GDownloadurl method from the Google Maps JavaScript API version 2: GDownloadUrl(down_load_url, function(data) { var xml = GXml.parse(data); }); This down_load_url has the request and the data variable will get the response as an XML. However, in Chrome this data variable contains nothing. In other browsers this function gets the requested data correctly. What is the wrong with Chrome?

Getting direction between two points in Google Maps, crossing specific points

无人久伴 提交于 2019-12-25 17:44:11
问题 I'm working on a project that the main part is to visually demonstrates directions between two points on Google Maps, but I want this direction do pass from specific point like A and B. I fount this solution: final Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://maps.google.com/maps?" + "saddr="+ source.latitude + "," + source.longitude+ "&daddr=" + dest.latitude+ "," + dest.longitude)); intent.setClassName("com.google.android.apps.maps","com.google.android.maps.MapsActivity")

Displaying Blank screen by using cordova-plugin-google maps Ionic Framework

柔情痞子 提交于 2019-12-25 14:29:07
问题 am new to using cordova google maps in my ionic app.when used this plugin in my app am getting blank screen like I followed step by step as mentioned in cordova google maps plugin Generated valid google maps API key for Android device this is the code i worked on it... <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="cordova.js"></script> <script type="text/javascript"> var map; document

Google maps API auto complete is not working

被刻印的时光 ゝ 提交于 2019-12-25 05:34:13
问题 I trying to get the google maps auto complete textview , I have taken resource from http://wptrafficanalyzer.in/blog/android-autocompletetextview-with-google-places-autocomplete-api/ I have compiled app , app runs but auto complete is not working ! it is like normal textview ! manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="in.wptrafficanalyzer.locationplacesautocomplete" android:versionCode="1" android:versionName=

Does geocoder.getFromLocationName not work on emulators?

随声附和 提交于 2019-12-25 05:10:48
问题 I am working on an app that takes the user input and then center the map on what the user entered. I have properly installed the google maps API. The map shows up. I also made sure the emulator is google API. I have tested my code and the geocoder.getFromLocationName returns null. I have looked up this questions and have tried different solutions and none have worked. Here is my code. public class GetURL extends MapActivity { Geocoder geocoder; MapView mapView = null; /** Called when the