google-maps-sdk-ios

Using the Google Maps SDK in views other than the main view

为君一笑 提交于 2019-12-29 06:24:32
问题 I am trying to use the Google Maps SDK for iOS in a subview of the main view which I created in the storyboard and linked to the view controller via an IBOutlet (I called it extraView, subclassed from UIView). When I follow the steps in the SDK getting started guide, the SDK works just fine, but it uses the uppermost view in the hierarchy (the main view), which I don't want. I want my map to be in a smaller portion of the screen and use the rest of the screen for something else. When I

Google Maps iOS SDK move “My Location” button to bottom left hand corner

三世轮回 提交于 2019-12-29 03:33:08
问题 Using the Google Maps for iOS SDK, the "My Location" button is by default placed in the bottom right hand corner: I'd like to place it in the bottom left hand corner (yes, I realize I need to be careful not to obscure the "Google" logo there). I don't believe the SDK has an "official" way of doing this, but based on this answer I have figured out how to get a hold of the My Location button subview so that I can position it. The part that has me confused is what values I should be giving to

Google Maps iOS SDK, Getting Current Location of user

百般思念 提交于 2019-12-28 02:40:09
问题 For my iOS app (building in iOS7 ),i need to show user's current location when the app load.I am using Google Maps iOS SDK . I am following this Google Map But i can't figure it out. Please help if you go through the path. 回答1: It seems Google Maps iOS SDK cannot access to the device position. So you have to retrieve the position by using CLLocationManager of iOS . First, add the CoreLocation.framework to your project : Go in Project Navigator Select your project Click on the tab Build Phases

How long does Google process requests for API key of Google Maps SDK for iOS? [closed]

浪子不回头ぞ 提交于 2019-12-25 09:32:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . We've submitted online form https://developers.google.com/maps/ios-access back in Dec 2012 however we still have not received any response from Google. Does anyone who posted similar request back in Dec know how long does it regularly take Google to reply to such requests? If we know it, it will help us (and

Google maps for iOS crashing

爷,独闯天下 提交于 2019-12-25 04:12:05
问题 Hi l am having a problem implementing google maps for iOS I have put all the relevant frameworks and added the -ObjC under Project NOt target and I am getting this error: CoreData: warning: Unable to load class named 'GMSCacheProperty' for entity 'GMSCacheProperty'. Class not found, using default NSManagedObject instead. 2015-02-09 22:48:01.326 AlertPoint[8038:957015] CoreData: warning: Unable to load class named 'GMSCachedObject' for entity 'GMSCachedObject'. Class not found, using default

How to keep a reference of marker in iOS Google Maps

ぐ巨炮叔叔 提交于 2019-12-25 03:01:22
问题 So according to the documentation, I need to keep a reference to the marker. Right now, in my viewWillDisappear method I'm trying to clear one of the pins off the map but it's not working. Maybe it's because I don't have a reference to it? If so, how does that work? (By the way, I couldn't get it to work as a part of any other method as well, not just viewWillDisappear .) I have the latitude and longitude of the marker and here's what I'm doing now: CLLocationCoordinate2D position =

Search on Google Map Sdk

∥☆過路亽.° 提交于 2019-12-25 02:59:16
问题 I need to implement the map view in my app to locate the required place. I had tried with the SVGeocoder concept. [SVGeocoder geocode:searchfield.text completion:^(NSArray *placemarks, NSHTTPURLResponse *urlResponse, NSError *error) { } But suppose I am trying to search any restaurent then the result is nil. I was looking on Google map sdk but don't know how to do search functionality on GMSCameraPosition class. GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:latitude

Module 'google maps' not found after adding another dependency on Xcode

情到浓时终转凉″ 提交于 2019-12-24 16:34:03
问题 I have been working with googles map SDK and I haven't had any problems until I added another dependency in my podfile. I get this error in Xcode saying, "Module 'Google Maps' not found" where I have '@import GoogleMaps'. If I take out the new pod the error goes away and everything works fine. I just recently started using cocoaPods, Is there something I'm missing in my podfile? platform :ios, '6.1' pod 'SDWebImage', '~>3.7' source 'https://github.com/CocoaPods/Specs.git' pod 'GoogleMaps' 回答1

Can not build Google Maps SDK for IOS version 1.7.0 with iOS6.1 sdk

僤鯓⒐⒋嵵緔 提交于 2019-12-24 03:53:42
问题 I've just updated to GMS version 1.7.0 and can not build successfully with Base SDK iOS6.1 . I could build GMS version 1.7.0 with Base SDK iOS7.0 successfully. I also could build old GMS version 1.6.0 with Base SDK iOS6.0 or 7.0 successfully. Below is my error content: Undefined symbols for architecture i386: "_glMapBufferRange", referenced from: gmscore::renderer::BufferObject::MapBuffer() in GoogleMaps(BufferObject.o) ld: symbol(s) not found for architecture i386 clang: error: linker

Animating GMSMarker in a circular path

一笑奈何 提交于 2019-12-24 01:45:30
问题 I understand how to normally animation other CALayers in a circular path based on this SO question: iPhone - How to make a circle path for a CAKeyframeAnimation? However, the GMSMarkerLayer is a special subclass of CALayers that does not seem to respond to the "position" keypath (following instructions in that link does nothing that I can visibly see) but instead will respond to the "latitude" and "longitude" keypaths instead. Here's the code that I've tried: CAKeyframeAnimation