google-maps-sdk-ios

Do marker animations exist on GoogleMaps SDK for iOS?

泄露秘密 提交于 2019-11-29 08:27:09
问题 Is it possible to move/rotate GMSMarker on GMSMapView with animation? 回答1: 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 = @

not able to use Google map sdk in ios

不想你离开。 提交于 2019-11-29 07:53:09
I am working a simple iOS app into which I am integrating Google Maps. but not getting any result . i have used this steps step 1 :i have downloaded Google Maps Mobile SDK from this link sdk ios step 2: Create an API project in the Google APIs Console. step 3: Select the Services pane in your API project, and enable the Google Maps SDK for iOS. This displays the Google Maps Terms of Service. getting Active status Google APIs Console. step 4:i Selected the API Access pane in the console, and click Create new iOS key. and then i added API Key in AppDelegate.m like this #import "AppDelegate.h"

How to do freehand drawing in Google Maps on iOS?

孤街浪徒 提交于 2019-11-29 07:37:56
In drawing application we can identify when the user is starting to draw and moving the finger to make a line/shape. I'm trying to do the same on a map, how can I do this? Basic steps will involve: 1) Add a overlay view whenever user starts to draw. lazy var canvasView:CanvasView = { var overlayView = CanvasView(frame: self.googleMapView.frame) overlayView.isUserInteractionEnabled = true overlayView.delegate = self return overlayView }() @IBAction func drawActn(_ sender: AnyObject?) { self.coordinates.removeAll() self.view.addSubview(canvasView) let origImage = UIImage(named: "pen") let

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

不打扰是莪最后的温柔 提交于 2019-11-29 07:18:00
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:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *

How to open google maps app with a dropped pin ? - Swift

白昼怎懂夜的黑 提交于 2019-11-29 04:23:19
I have this code to open Google Maps App with specific location and it's working but what I need is to drop a pin on that location, is it possible ? if (UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!)) { UIApplication.shared.openURL(URL(string: "comgooglemaps://?center=\(self.location.coordinate.latitude),\(self.location.coordinate.longitude)&zoom=14&views=traffic")!) } else { print("Can't use comgooglemaps://"); } How to to do this ? q: The query string for your search. It creates a marker in given coordinates. Try this if (UIApplication.shared.canOpenURL(URL(string:

How to display a circle in GMSMapView

匆匆过客 提交于 2019-11-28 23:29:22
I need to display a circle (as with MKCircle) on a GMSMapView. This is easy when using a MKMapView and MKCircle, but can't use MKCircle with GMSMapView. Any ideas? Update: This are the current(18.03.2013) options: 1. A ground marker containing a circle image. 2. A a circle made with several segments (polyline). Edit: 3. Google added a GMSCircle (23.04.2013) GMSGroundOverlayOptions *overlayOptions = [GMSGroundOverlayOptions options]; overlayOptions.icon = [UIImage imageNamed:@"circle"]; overlayOptions.position = touchMapCoordinate; overlayOptions.bearing = 0; overlayOptions.zoomLevel = 14.3;

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

孤街浪徒 提交于 2019-11-28 21:33:01
问题 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 =

How to send google maps location info through SMS as a link

℡╲_俬逩灬. 提交于 2019-11-28 20:43:35
In an application that I'm building, I am trying to send my location info(Lat,Long/ Geocoded) to my emergency contact list. I am assuming that all my recipients are using smartphones(Android/iOS) Until now, the application sends my location info as a string through SMS: "I am at: " + Some Geocoded Location However, I thought that this is not an optimal way of sending the exact location info. So, I was thinking if it was possible to generate a map through Google Maps API with a pinpoint/dot on it, and send a link to that map. Can this be done in Device level(Without contacting any servers) Or,

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

倖福魔咒の 提交于 2019-11-28 18:58:59
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 the My Location view's frame and/or bounds to get it where I want it. For starters, the My Location

iOS google maps sdk GMSMarker positioning

喜夏-厌秋 提交于 2019-11-28 13:19:54
I am working with Google maps and I am able to center the map to the GMSMarker by using GMSCameraPosition *camera = [[GMSCameraPosition alloc] initWithTarget:marker.position zoom:MAP_ZOOM_LEVEL bearing:0 viewingAngle:0]; [mapView animateToCameraPosition:camera]; I am showing a custom callout of size 200*150 and part of it gets hidden when the camera position is changed but I want the callout to be in the center and the map point to be below it. Any ideas how to do this. Have a look at using GMSProjection . To shift the center of the map 100px from the markers location you would do something