gmsmapview

How do I set the size of Google Maps app within my ViewController?

老子叫甜甜 提交于 2019-12-11 05:24:23
问题 I started a brand new Single View project with just Google Maps SDK being integrated in it. Right now it spans over all the screen (full-size), which I believe is the default setting. I want to reduce it so it doesn't take up space on the top bar and I also want to leave space on the bottom for my buttons. How do I do so? Here's the only method implemented in my (single) view controller class: - (void)loadView { // Create a GMSCameraPosition that tells the map to display the // coordinate -33

Android android.view.InflateException Binary XML file line #16: Error inflating class fragment

随声附和 提交于 2019-12-10 17:55:16
问题 Here is MainActivity Class import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.json.JSONObject; import android.graphics.Color; import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.util.Log; import android.view.Menu;

Google Maps iOS SDK Touch Events

两盒软妹~` 提交于 2019-12-10 10:06:09
问题 I'm trying to add an UIGestureRecognizer to one the whole google map view. I want to get notified if i touch the map ( not the marker ), but i don't know how. what i did is this inside viewDidLoad: UITapGestureRecognizer* tapRec = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didTapMap:)]; [mapView_ addGestureRecognizer:tapRec]; and outside viewDidLoad: - (void)didTapMap:(UITapGestureRecognizer *)recognizer { NSLog(@"Touched map"); } but this method don't work and don't

Remove particular GMSMarker from GMSMapview using Google Map sdk in ios

て烟熏妆下的殇ゞ 提交于 2019-12-10 01:45:50
问题 I am integrating google maps sdk. Its all work fine. But how to remove particular Marker(Pin Point) when second will appear.(I am not using Mapkit) I want the following: If i tap on map then one marker pin is generate at that location now if i tap on another location on map then two pins are displayed but i want to remove the old marker pin. I also use, [self.mapView clear]; But it was clear all other marker points from GMSMapview. Following is the code to add pin on Map: GMSMapView *mapView;

How to add marker for a map view in google maps sdk for ios in swift

◇◆丶佛笑我妖孽 提交于 2019-12-09 06:59:29
问题 Trying to add a marker to Google map,but the app is getting crashed at while addMarker() function call,Exception details are as follows, Terminating app due to uncaught exception ' GMSThreadException ', reason: 'All calls to the Google Maps SDK for iOS must be made from the UI thread' FYI vwGogleMap is global and in a function I'm trying to plot marker. func addMarker() -> Void { var vwGogleMap : GMSMapView? var position = CLLocationCoordinate2DMake(17.411647,78.435637) var marker = GMSMarker

GMSGeocoder - how to set response language

北慕城南 提交于 2019-12-08 15:50:16
问题 When using my app in a foreign country, the google GMSGeocoder is returning the response in local language automatically. how can I set it to always return the the response in English? Im using GMS SDK 1.7 and my code is something like this: GMSGeocoder *geoCoder = [[GMSGeocoder alloc] init]; [geoCoder reverseGeocodeCoordinate:self.cellLocation.coordinate completionHandler:^(GMSReverseGeocodeResponse *respones, NSError *err) { if([respones firstResult]) { GMSAddress* address = [respones

OneSignal and Google gms incompatibility

主宰稳场 提交于 2019-12-08 08:10:14
问题 There is this error I get which you can see below. I found what causes the error is the incompatibility between the gms version in my project and the one used in Onesignal. I have checked every single solution proposed in these posts: https://github.com/OneSignal/OneSignal-Android-SDK/issues/286 https://stackoverflow.com/questions/43430401/android-nosuchmethoderror-no-static-method-zzyljava-lang-object/43430478#comment86259725_43430478 Couldn't add OneSignal's Gradle plugin as suggested by

Cant interact with custom infowindow in google map

不羁岁月 提交于 2019-12-07 11:59:32
I have a google map and I've created a custom info window for my markers. I've put a couple buttons on the window, but I can't interact with them for the life of me. Here is my custom view: class MarkerWindowView: UIView, UIGestureRecognizerDelegate { //@IBOutlet weak var thumbNail: UIImageView! @IBOutlet weak var userName: UILabel! @IBOutlet weak var videoLocation: UILabel! @IBOutlet weak var tags: UILabel! override func awakeFromNib() { println("awake From Nib") self.userInteractionEnabled = true print(self.userInteractionEnabled) /*let recognizer = UITapGestureRecognizer(target: self,

GoogleMaps API KEY for testing

匆匆过客 提交于 2019-12-06 19:53:38
问题 I'd like to add an API_KEY for GoogleMaps for testing and in documentation I've read this : Tip: During development and testing, you can register a project for testing purposes in the Google Cloud Platform Console and use a generic, unrestricted API key. When you are ready to move your app into production, register a separate project for production, create an Android-restricted API key, and add the key to your application. My question is, do I have to put my Credit card even if it's a testing

Google Maps iOS SDK Touch Events

冷暖自知 提交于 2019-12-06 03:36:15
I'm trying to add an UIGestureRecognizer to one the whole google map view. I want to get notified if i touch the map ( not the marker ), but i don't know how. what i did is this inside viewDidLoad: UITapGestureRecognizer* tapRec = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didTapMap:)]; [mapView_ addGestureRecognizer:tapRec]; and outside viewDidLoad: - (void)didTapMap:(UITapGestureRecognizer *)recognizer { NSLog(@"Touched map"); } but this method don't work and don't print anything on the console window.. please help me and show me how to do it please Gonzalo E I