google-maps-sdk-ios

I want to shake the google map marker in iOS Swift

别等时光非礼了梦想. 提交于 2019-12-19 10:12:48
问题 I am working on a project where I wants to shake the marker on google Map. I am using the custom marker icon to represent on the map. Like a head of person is shaking. I don't know how to do it and search a lot but didn't find any solution. 回答1: You can add a CAKeyframeAnimation or CABasicAnimation to your marker.iconView!.layer we add a UIView with a frame bigger than our UIImageView inside then we need to adjust the anchor point of your UIImageView to bottom in vertical and horizontally

Google maps iOS sdk get tapped overlay coordinates

断了今生、忘了曾经 提交于 2019-12-19 09:09:13
问题 i'm working with Google maps iOS sdk. i want to get the coordinates of the touched point when user taps an overlay. there is this delegate method: - (void)mapView:(GMSMapView *)mapView didTapAtCoordinate:(CLLocationCoordinate2D)coordinate but it's not called when you tap an overlay or a marker. can i call it programmatically (but coordinate parameter is missing-that's what i want..)? or get location from this: - (void) mapView: (GMSMapView *) mapView didTapOverlay: (GMSOverlay *) overlay any

Wrong polyline drawing on map with Google Maps SDK

跟風遠走 提交于 2019-12-19 04:14:45
问题 I'm trying to draw route on my map using Google Maps SDK. This is the URL that i'm calling and I parse the JSON response to array of coordinates: id jsonResponse = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableContainers error:nil]; int points_count = 0; points_count = [[[[[[jsonResponse objectForKey:@"routes"] objectAtIndex:0] objectForKey:@"legs"] objectAtIndex:0] objectForKey:@"steps"] count]; NSArray *steps = nil; if (points_count && [[[[jsonResponse

Set a marker over all other markers in Google Maps SDK iOS

懵懂的女人 提交于 2019-12-18 13:11:21
问题 I'm trying to place a marker, but when I do it, this marker is placed behind of some markers set before (and over some others as well). I want to set it over all the markers, but I didn't find any property (like z-index) to achieve this. This is the part of the code where I set the marker that stays behind the others: GMSMarker *marker = [[GMSMarker alloc] init]; marker.animated=YES; marker.position = CLLocationCoordinate2DMake(lat, lon); marker.map = mapView_; and this is the result: Is

Google Maps iOS SDK - Search for places

你。 提交于 2019-12-18 12:24:39
问题 I'm new to both iOS programming & the Google Maps iOS SDK, so apologies if this is a basic question. I want to include a Google map, in an app and give users the ability to search for various places (restaurants, bars, gyms, etc) within a certain radius of a marker. I know this is possible using the javascript api, but can it be done using the maps iOS SDK? I have read all of the information here and have searched Stack Overflow & Google but I can't really find anything that gives me any

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

廉价感情. 提交于 2019-12-18 11:33:45
问题 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

iOS, How to use GMSCoordinateBounds to show all the markers of the map?

久未见 提交于 2019-12-18 10:15:54
问题 I want to show all the markers that are on my map, after doing some searches I found that it should be done with GMSCoordinateBounds (Google Maps SDK) I've read the official documentation about it, but I have not understand how to use it and implement it in my code. https://developers.google.com/maps/documentation/ios/reference/interface_g_m_s_camera_update#aa5b05606808272f9054c54af6830df3e Here is my code GMSCoordinateBounds *bounds = [[GMSCoordinateBounds alloc] init];

How to do freehand drawing in Google Maps on iOS?

霸气de小男生 提交于 2019-12-18 05:04:40
问题 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? 回答1: 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?) {

Google Maps iOS SDK - Add UIView/UIButton over a GMSMapView

…衆ロ難τιáo~ 提交于 2019-12-17 19:27:27
问题 I'm developing an iOS app with Google Maps iOS SDK with storyboard. On my main view controller in "viewDidLoad" I have implemented a GMSMapView and shows it by self.view = mapView_; and everything goes fine. Now I want to add a UIView or UIButton over the map, like myLocation button style. There is any solution to add it and use it via storyboard? I've overlayed objects on the map by code but i really need autolayout so manage it via Storyboard would be nice. Thanks. 回答1: Try this (making

Framework not found GoogleMaps sdk in iOS

随声附和 提交于 2019-12-17 18:26:35
问题 I want to use google map to existing(not a new one) iPhone project.Now i am using Google map ios sdk and i successfully added google map framework to my project.But i got error like this ld: framework not found GoogleMaps clang: error: linker command failed with exit code 1 (use -v to see invocation) How to solve this issue.I am using xcode4.5 and google map iOS sdk version is 1.5. When i am creating new project with google map iOS sdk then no error getting for me.Error only for existing iOS