google-maps-sdk-ios

Google Maps SDK for iOS doesn't display map content

…衆ロ難τιáo~ 提交于 2019-11-30 12:55:13
I'm using the current version 1.1.2 of Google Maps SDK for iOS. The map only displays the Google logo, the current location and the added marker. But no map content whatsoever: I correctly registered the API key: BOOL result = [GMSServices provideAPIKey:@"<my key>"]; the result is YES and I verified that the bundleIdentifier matches with the API console. I load the GMSMapView from a storyboard and set the camera in my -viewDidLoad : self.mapView.camera = [GMSCameraPosition cameraWithLatitude:0 longitude:0 zoom:2]; This is logged by GMSMapView: Failed to make complete framebuffer object 8cd6

Google Map SDK: Draw correct polyline in google map as Device Moves in Background

喜你入骨 提交于 2019-11-30 08:37:18
问题 I am using Google Map SDK for iOS. I am drawing polylines in Driving mode. But when i stop,and Zoom google map then, my Current position cursor automatically moves and redraw zigzag polylines, due to that all previous polylines drawn get overlapped and polylines get completely changed.Same things happens when i go in background and drive. Could i know why is it happening? And How can I draw smooth polylines in driving and walking mode same time in same path. My Code- - (void)locationManager:

GoogleMapsSDK : Undefined symbols for architecture x86_64

孤者浪人 提交于 2019-11-30 08:24:34
I am trying to install the Google maps SDK and I am running through this error when running: Undefined symbols for architecture x86_64: "_CBAdvertisementDataManufacturerDataKey", referenced from: -[GMSx_PEBeaconScanner centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in GoogleMaps(PEBeaconScanner.o) "_CBAdvertisementDataServiceDataKey", referenced from: -[GMSx_PEBeaconScanner centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in GoogleMaps(PEBeaconScanner.o) "_CBCentralManagerScanOptionAllowDuplicatesKey", referenced from: -[GMSx_PEBeaconScanner scanIfAppropriate] in

Do marker animations exist on GoogleMaps SDK for iOS?

旧巷老猫 提交于 2019-11-30 07:04:09
Is it possible to move/rotate GMSMarker on GMSMapView with animation? The addition in 1.2 is that the GMSMarker class has an animated property - I presume you just set it to YES , before adding the marker to the map by settings its map property (I haven't tried it though). https://developers.google.com/maps/documentation/ios/reference/interface_g_m_s_marker GMSMarker *marker = [[GMSMarker alloc] init]; marker.position = CLLocationCoordinate2DMake(-33.8683, 151.2086); marker.title = @"Sydney"; marker.snippet = @"Australia"; marker.animated = YES; marker.map = mapView_; I presume this means that

Google Map flickering in iOS

佐手、 提交于 2019-11-30 05:34:33
问题 I am using Google Maps SDK for iOS version: 1.10.17867.0 in my app via pod. But when I initialise the map at a particular position, all the titles and map starts flickering. Example Code (swift): import UIKit import GoogleMaps class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = UIColor.whiteColor(); var camera = GMSCameraPosition.cameraWithLatitude(19.0176147, longitude: 72.8561644, zoom:18) // even try this: 28.6469655,

how to draw a path one place to another place in google map sdk iOS?

时光毁灭记忆、已成空白 提交于 2019-11-30 04:37:27
问题 i need to find path in google map view one place to another place. how to draw a direction map using google map sdk iOS. can any of give source code. and then explain how to achieve this. Below i attached image also, i need to achieve this in iPhone app using Google Map SDK iOS. Thanks, 回答1: -(void)showRoute:(id)routeDict { NSString *pointStr = [[[[routeDict objectForKey:@"routes"] objectAtIndex:0] objectForKey:@"overview_polyline"] objectForKey:@"points"]; float max_long = 0.0; float min

How set Custom Annotation markers ( animated rings around a point) on GMSMapView

怎甘沉沦 提交于 2019-11-30 04:00:49
Using Google maps iOS SDK I have implemented a mapView in that i have created markers as follows // Creates a marker in the center of the map. GMSMarker *marker = [[GMSMarker alloc] init]; marker.position = CLLocationCoordinate2DMake(-33.86, 151.20); marker.title = @"Sydney"; marker.snippet = @"Australia"; marker.icon = [UIImage imageNamed:@"point1.png"]; marker.map = mapView_; But i need to Display animated images ie some sequence of images to display, animated rings around a point, instead of original GMSMarker sequence of images are point1.png point2.png point3.png point4.png point5.png Can

How do I move marker along with moving of Google Map in iOS?

好久不见. 提交于 2019-11-30 01:27:49
I am displaying a marker in a particular place, along with displaying the current address in the address label on Google Maps. Now, I want to change the location by moving the Google Map, but the problem is that when I am moving the map, I should simultaneously move the marker along with the map, and I should display the address of that location in the address label. How can I do that? I tried this: let destinationMarker = GMSMarker(position: self.destinationLocation.coordinate) let image = UIImage(named:"sourcemarker") destinationMarker.icon = image destinationMarker.draggable = true

Optimising custom marker image performance with Google Maps SDK for iOS

徘徊边缘 提交于 2019-11-30 00:57:35
问题 I have recently been incorporating the Google Maps for iOS SDK within an iOS app. This app is designed to retrieve position of aircraft (including aircraft model, lat/lng, speed - basic values for an aircraft) and then plot them on a Google Map. Now, recently, the number of aircraft that the API (the one I am using) is returning has doubled, nearly tripled. I had no issues before yet each time I attempt to run the app, it crashes, giving me the following error: ((null)) was false: Reached the

Switch Google Maps SDK & Mapkit in the same app cause crash

二次信任 提交于 2019-11-29 23:47:12
问题 I created a pretty simple app that uses MapKit and GoogleMaps frameworks and tried to switch between the two maps. I am using ARC (ios 6.1) and Google Maps SDK for iOS version: 1.1.1.2311. After a couple of switches the app crashes with [EAGLContext setCurrentContext:] – always in the MapKit code. There was some suggestions in a previous thread - to try setting [EAGLContext setCurrentContext:nil] at various places but it doesn’t help. stack trace: Exception Type: EXC_BAD_ACCESS (SIGSEGV)