google-maps-api-2

Scrolling causes page scroll AND map zoom in IE9 (Google maps v2)

ⅰ亾dé卋堺 提交于 2019-12-13 05:15:48
问题 In Internet Explorer 9, using the Google Maps API v2 (which is deprecated), zooming with the scroll wheel also causes the page to scroll. Does anyone know of a workaround for this issue? (Upgrading our codebase to v3 is not yet possible, unfortunately.) This behavior does not occur in earlier versions of Internet Explorer. Here is a test page. 回答1: Many people seem to have the same problem around the net but I found no solutions posted. So here is mine: Since non-scrollable components do not

GPS location of peoples using same product in 100 radius miles using Google map API

↘锁芯ラ 提交于 2019-12-13 04:45:17
问题 Is it possible to find out gps location of peoples using same product in particular radius using Google map api in ios application? 回答1: I think you would need to write a web service that you post a request to containing a device token and coordinates. The server will maintain a table of device tokens and coords and return a list of devices for devices that google api determines as being within a given distance. 来源: https://stackoverflow.com/questions/9971128/gps-location-of-peoples-using

Android Maps v2 Couldn't get connection factory client

眉间皱痕 提交于 2019-12-13 04:38:13
问题 I have a problem. I am getting a blank google map. I tried everything around the net. But nothing seems to solve this issue. I have pasted the logcat below. I have tried both debug key and release key. But both are not working. The map is not working. I just get a grey background with Google written below :( Please help 09-04 12:29:57.037: E/MapActivity(9569): Couldn't get connection factory client 09-04 12:29:57.067: D/dalvikvm(9569): GC_FOR_ALLOC freed 54K, 2% free 9295K/9464K, paused 14ms,

Can't run android application with release keystore

▼魔方 西西 提交于 2019-12-13 03:01:51
问题 I developed a Simple Applicaiton , and generated a Google API Map key. I provided the api console with a signature created from the debug keystore. When I got ready for release , I created a releasekeystore , and signed the application with it . Then I used the releasekeystore to generate a new fingerprint , and updated the google api console. However when i run my application locally , it gives an error saying 10-10 14:37:42.571: E/Google Maps Android API(12369): Ensure that the following

Is it mandatory to change the Google Map api V1 to V2

荒凉一梦 提交于 2019-12-13 02:08:28
问题 In my app, I am using Google Map API V1 and it is in Google play; so is it mandatory to upgrade to V2 or I can go ahead with this for future? Regularly we are upgrading the app? If I upgrade the Map API to V2, then do I need to change the app signing key? Please help. 回答1: The sad answer is that most of the objects of Google Map API V1 are replaced with new Objects in Google Map API V2. For example instead of using GeoPoints you are going to use Latlng points. Overlays are gone as well and

Runtime errors while Launching the Map

隐身守侯 提交于 2019-12-13 00:59:06
问题 Here's my onCreate() Method..The two commented lines were used previously to launch the map and it worked fine.Later I found out Google doen't use LocationClient anymore and they use GoogleAPIClient instead.So I changed it. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button send = (Button) findViewById(R.id.button2); if(initMap()) { //mLocationClient = new LocationClient(this,this,this); /

Android Error: Binary XML file line #16: Error inflating class fragment when adding map fragment

一个人想着一个人 提交于 2019-12-12 18:33:55
问题 I'm trying to display map using map api v2. Here is my xml code: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="

Draw over google map v2 android

风格不统一 提交于 2019-12-12 17:27:54
问题 I created an android app to draw free shapes over google map v2. The idea of the app is that I combines two apps, one is to draw free shapes and the other is normal google map v2 app. This link is my last question about this app and it contains the code The app works well with me but now I have a new problem. My problem is that when I draw a line over a specific location on the map and convert control to map and drag it, I found that the line keep in its place in the view and the map moves

Rotating drawable via XML not working with marker on GoogleMap V2

▼魔方 西西 提交于 2019-12-12 10:09:49
问题 I would like to rotate a drawable with an xml-file , then show it on the map. I do like this. //...// mo1.position(myLatLng).icon(BitmapDescriptorFactory.fromResource(R.drawable.myxmldrawable)); map.addMarker(mo1); //...// XML file: <?xml version="1.0" encoding="utf-8"?> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="180" android:toDegrees="180" android:pivotX="50%" android:pivotY="50%" android:drawable="@drawable/pin"/> If i ran the code the following

Google Maps v2: how to display various markers with the same coordinates

吃可爱长大的小学妹 提交于 2019-12-12 09:45:26
问题 I'm using Google Maps JavaScript API V2 to mark locations saved in an array. Markers with different coordinates are displayed well, but I have no idea how to display various markers with the same coordinates. I need it because an array of locations can have the same coordinates, but with a different description. What is the way to display those different descriptions? The code where markers are added is: var map; function loadEarth(mapdiv) { if (GBrowserIsCompatible()) { if(!mapdiv) return