草庐IT

googlemaps

全部标签

ios - 比特币 : GoogleMaps framework not found issue

我正在使用Bitrise生成构建并将其上传到AppStore。当我在设备上运行应用程序或生成构建并通过Xcode上传到AppStore时没有出现任何错误,但是当我尝试通过Bitrise执行相同的过程时,它没有显示❌ld:frameworknotfoundGoogleMaps❌clang:error:linkercommandfailedwithexitcode1(use-vtoseeinvocation)Thefollowingbuildcommandsfailed:Ld/Users/vagrant/Library/Developer/Xcode/DerivedData/-dieokl

ios - GoogleMaps iOS SDK GMSMapView 类解除分配

我正在努力将GoogleMapsiOSSDK集成到我的项目中,但我不断收到此错误:'NSInternalInconsistencyException''Aninstance0x7fea5e93e210ofclassGMSMapViewwasdeallocatedwhilekeyvalueobserverswerestillregisteredwithit.Currentobservationinfo:这是我的ViewController代码:importUIKitimportGoogleMapsclassViewController:UIViewController,CLLocatio

ios - 无法让 GoogleMaps SDK 在 Xcode Test Target 上运行(在 App Target 上运行)

设置我已经使用CocoaPods成功地将GoogleMapsSDK集成到我的Swift2项目中。我的设置与RayWenderlichtutorial所建议的差不多就此主题而言。我能找到的唯一区别是,我必须将这一行添加到AppDelegate:importUIKitimportGoogleMaps//...为了使用框架的类。本教程建议导入:#import...改为桥接头。该应用程序运行没有问题。问题:当我尝试运行由Xcode自动生成的测试目标时,出现错误:Nosuchmodule'GoogleMaps'...指向上面AppDelegate中的swiftimport语句。因此,我决定改用教

ios - 适用于 iOS 的可调整大小的 GMSCircle GoogleMaps SDK

有什么方法可以调整(缩小和扩大)GMSCircle对象的大小吗?我创建了GMSCircle并将其附加到我们的map中varcirlce:GMSCircle!letcamera=GMSCameraPosition.cameraWithLatitude(-33.86,longitude:151.20,zoom:6)mapView=GMSMapView.mapWithFrame(CGRectZero,camera:camera)cirlce=GMSCircle(position:camera.target,radius:100000)cirlce.fillColor=UIColor.redC

swift - 如何在 Swift 的 GoogleMaps 标记片段中做多行?

假设我有这段代码//时间和速度都是字符串marker.snippet=时间+速度//2016/04/1460kmph我希望它们分两行显示,而不是只显示一行提前致谢。 最佳答案 哈哈哈,“\n”哈哈???“\n”应该被解析为一个标准的新行。那么结果会是这样吗?marker.snippet=time+"\n"+speed 关于swift-如何在Swift的GoogleMaps标记片段中做多行?,我们在StackOverflow上找到一个类似的问题: https:/

Swift:没有这样的模块 "GoogleMaps"错误

我正在尝试在Swift中使用适用于iOS的GoogleMapsSDK。我一直在关注these来自谷歌开发者网站的步骤。问题是当我尝试在AppDelegate.swift中导入GoogleMaps时,它显示了类似...Nosuchmodule'GoogleMaps'的错误。我已经添加了所有框架并对链接和build设置进行了必要的更改。有什么我遗漏的吗? 最佳答案 该网站上的步骤仍然适用于Objective-C应用程序。要使用GoogleMapsAPI在Swift中编写应用程序,您需要添加bridgingheader,然后您可以使用#i

ios - Xcode 9 上的 GoogleMaps 崩溃

长期以来,我一直在我的应用程序中使用GoogleMaps库,但自从我用Swift4更新了Xcode后,当我转到map时,我的应用程序崩溃了。错误:WARNING:Unabletofindandload'GoogleMaps.bundle'forGoogleMapsSDKforiOS.Thismaybeasignthatyou'veforgottentoincludearesourcesbundleinyour'CopyBundleResources'buildphase.Asthisbundlecontainsimportantresources,youmayencountermiss

Swift - GoogleMaps SDK 获取触摸坐标

我是swift和GoogleMapsSDK的新手,想知道如何使用GoogleMapsSDK获取用户点击位置的坐标。例如,如果用户将手指按住map上的某个地方,就会在该处创建注释。非常感谢您的帮助,谢谢。 最佳答案 在GMSMapViewDelegate中有一个名为:mapView:didLongPressAtCoordinate:的方法,在特定坐标处的长按手势后调用。请参阅引用资料here.通过实现此方法,您可以向mapView添加标记:funcmapView(mapView:GMSMapView!,didLongPressAtCo

swift - 使用 Swift 更改 GoogleMap 中标记的大小

我在GoogleMap中放置了一个标记,其中包含Image。但图像的尺寸要大得多。那么如何减小标记的大小。我试过这个:marker.icon=self.image(marker.icon,scaledToSize:CGSize(width:3.0,height:3.0)) 最佳答案 要调整图像大小,请参阅:ThesimplestwaytoresizeanUIImage?现在将调整大小的图像设置为标记图标,即marker.icon=self.imageWithImage(image:UIImage(named:"imageName")

python - 无法导入名称 GoogleMaps

我按照指示去做了pipinstallGoogleMaps安装谷歌地图。但是当我尝试导入GoogleMaps类时,尽管安装了googlemaps但它还是失败了。Python2.7.6(default,Mar222014,22:59:38)[GCC4.8.2]onlinux2Type"help","copyright","credits"or"license"formoreinformation.>>>importgooglemaps>>>>>>fromgooglemapsimportGoogleMapsTraceback(mostrecentcalllast):File"",line1,