google-maps-mobile

Obtain the latitude and longitude using the pincode on google maps

狂风中的少年 提交于 2019-12-11 12:38:16
问题 I have a requirement to loading a Google map location given the pin code or area code. I've tried using the Geocoder method to find the latitude and longitude using a given address. This works when a location or area is given, but is not working for the pincode (specifically India). Is there is any method or way to find the latitude and longitude of a given area using the pincode. This is specific to a map to be loaded on android, using the mapview. The code i've written is given as: package

Android : Unfortunately google maps stopped

醉酒当歌 提交于 2019-12-11 08:20:02
问题 Main.xml & manifest.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.google.android.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/map_view" android:layout_width="fill_parent" android:layout_height="fill_parent" android:clickable="true" android:state_enabled="true" android

MyLocationOverlay or LocationManager for updating current location

为君一笑 提交于 2019-12-06 01:07:00
问题 I am using MapView to show current location of a user on a Map. To update the location while the user is on the move, I have to a choice: I can use MyLocationOverlay to draw the current location and extend it to allow tracking of the users location on the move and to have custom marker. The problem with MyLocationOverlay is that I cannot control the frequency with which the device requests the location from GPS. I am worried about the battery drain here. I can use Location Manager and

iOS GoogleMaps SDK - animateToCameraPosition animation finished handler?

本秂侑毒 提交于 2019-12-05 13:11:37
问题 Currently I am using the GoogleMaps SDK for iOS for various operations. When calling [self.googleMapsView animateToCameraPosition:[GMSCameraPosition cameraWithLatitude:LATITUDE longitude:LONGITUDE zoom:ZOOM]]; is there a completion handler to determine wether the animation finished or not? Of course I get with the GMSMapViewDelegate updates about the cameraPosition but how should I check if the animation finished? - (void)mapView:(GMSMapView *)mapView didChangeCameraPosition:

How to customize the InfoWindow of google map iOS SDK?

心不动则不痛 提交于 2019-12-05 07:29:11
问题 I want to change the width of the InfoWindow of google map iOS SDK. Is there anyway to do? The reason I want to do it is to show the full address in the InfoWindow. Is there any other way to do so instead of customizing the InfoWindow? Also, can I change the text size in the InfoWindow? At least, I would like to achieve the effect like this map: http://www.google.com/about/company/facts/locations/ where hyperlink can be applied as well. 回答1: Set the map delegate to the view controller, then

Display multiple markers on the Google Map in Objective C

≡放荡痞女 提交于 2019-12-04 18:53:31
How can I display multiple markers on the Google Map in iOS? I used the following approach, but it didn't work. for (int i = 0; i < [array count]; i++) { pointsToUse[i] = CLLocationCoordinate2DMake([[[[array objectAtIndex:0] componentsSeparatedByString:@","] objectAtIndex:0] floatValue],[[[[array objectAtIndex:0] componentsSeparatedByString:@","] objectAtIndex:1] floatValue]); [_map animateToLocation:pointsToUse[i]]; GMSMarkerOptions *options = [[GMSMarkerOptions alloc] init]; options.position = pointsToUse[i]; [_map animateToLocation:pointsToUse[i]]; [_map addMarkerWithOptions:options]; } You

MyLocationOverlay or LocationManager for updating current location

ⅰ亾dé卋堺 提交于 2019-12-04 05:20:37
I am using MapView to show current location of a user on a Map. To update the location while the user is on the move, I have to a choice: I can use MyLocationOverlay to draw the current location and extend it to allow tracking of the users location on the move and to have custom marker. The problem with MyLocationOverlay is that I cannot control the frequency with which the device requests the location from GPS. I am worried about the battery drain here. I can use Location Manager and subscribe using requestLocationUpdates to get location from GPS. Here I have more control over the frequency

How to customize the InfoWindow of google map iOS SDK?

ぃ、小莉子 提交于 2019-12-03 20:38:53
I want to change the width of the InfoWindow of google map iOS SDK. Is there anyway to do? The reason I want to do it is to show the full address in the InfoWindow. Is there any other way to do so instead of customizing the InfoWindow? Also, can I change the text size in the InfoWindow? At least, I would like to achieve the effect like this map: http://www.google.com/about/company/facts/locations/ where hyperlink can be applied as well. Jing Set the map delegate to the view controller, then implement the google maps delegate method -(UIView *)mapView:(GMSMapView *) aMapView markerInfoWindow:

How to implement Google Maps new version of API v2

守給你的承諾、 提交于 2019-12-03 17:20:23
问题 Hi every one I came to know that google maps has deprecated its previous version API v1 and introduced a new version of google maps API v2. I tried out one example by following some links in google any how i am pretty sure that i got the api key correctly by providing the exact hash key code and managed to get the correct api key. Now i managed to write some code as well but when i tried to execute the code i am getting the errors please help me to solve this here is my code and i even tried

Open Street Maps with Android Google Maps Api v2

痴心易碎 提交于 2019-11-28 21:27:31
Is it possible to use an open street map provider with the new Google Maps V2 Api on Android? If so can you provide an example, or documentation? I have looked quickly at the docs and found UrlTileProvider() , so it looks likely this is possible. Bonus: Is simply using the MapFragment class with OSM tiles still bound by the Google Maps TOS? You need to extend the UrlTileProvider class so you can define the URL for OSM tiled maps and add a tile overlay like that : MyUrlTileProvider mTileProvider = new MyUrlTileProvider(256, 256, mUrl); mMap.addTileOverlay(new TileOverlayOptions().tileProvider