jjzjj

GoogleMaps

全部标签

ios - 是否可以在 iOS 中通过 PlaceId 打开谷歌地图?

在Android中,可以使用URI调用GoogleMaps,如下所示https://www.google.com/maps/search/?api=1&query=47.5951518,-122.3316393&query_place_id=ChIJKxjxuaNqkFQR3CK6O1HNNqY在thisanswer中给出.此查询会在Android设备上打开GoogleMaps,地点信息如下图所示:我正在为IOS和GoogleMaps寻找类似的结果。我在GoogleMapsSDK文档和互联网上进行了搜索,但找不到答案。我们可以使用GoogleMaps在IOS上实现这一目标吗?

ios - swift 在 googlemaps 图层上方添加图层

我试图通过谷歌地图文档中的代码在谷歌地图上添加我自己的图层:extensionMapViewController{funcaddTiles(){//ImplementGMSTileURLConstructor//ReturnsaTilebasedonthex,y,zoomcoordinates,andtherequestedfloorleturls={(x:UInt,y:UInt,zoom:UInt)->NSURLinleturl="http://example.pl/ras/\(zoom)/\(x),\(y).v\(1).png";returnNSURL(string:url)!}/

ios - 在 Swift 中显示 GoogleMaps View ?

我的代码:varcamera=GMSCameraPosition.cameraWithLatitude(currentLocation.latitude,longitude:currentLocation.longitude,zoom:12)//latitude,longitudelike:31.230416and121.473701.letmap=GMSMapView(frame:CGRectZero)map.delegate=selfmap.camera=cameraself.view=map工作正常!像这样:但是当我创建新View时:@IBOutletweakvarmapView

ios - GoogleMaps 基本 iOS 演示应用程序崩溃 - 无法识别的选择器发送到实例

我正在尝试运行基本的iOS演示SDK代码。我已经创建了APIkey并且加载正常。虽然我已经将代码从viewDidLoad转移到loadView,但效果仍然存在。看下面代码-(void)loadView{//CreateaGMSCameraPositionthattellsthemaptodisplaythe//coordinate-33.86,151.20atzoomlevel6.GMSCameraPosition*camera=[GMSCameraPositioncameraWithLatitude:-33.86longitude:151.20zoom:6];_mapView=[GM

ios - GoogleMaps 基本 iOS 演示应用程序崩溃 - 无法识别的选择器发送到实例

我正在尝试运行基本的iOS演示SDK代码。我已经创建了APIkey并且加载正常。虽然我已经将代码从viewDidLoad转移到loadView,但效果仍然存在。看下面代码-(void)loadView{//CreateaGMSCameraPositionthattellsthemaptodisplaythe//coordinate-33.86,151.20atzoomlevel6.GMSCameraPosition*camera=[GMSCameraPositioncameraWithLatitude:-33.86longitude:151.20zoom:6];_mapView=[GM

ios - 使用未解析的标识符 'GMSServices'

我使用的是Xcode7.1,部署目标是iOS9.1。该应用程序是“AreaCalculator”,它是用Swift编写的。我按照以下步骤设置了框架并导入了map:$sudogeminstallcocoapods在“AreaCalculator”下$touchPodfile我在Podfile中放入:source'https://github.com/CocoaPods/Specs.git'platform:ios,'9.1'pod'GoogleMaps'$pod安装在终端中:[!]无法加载插件规范/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-re

ios - 使用未解析的标识符 'GMSServices'

我使用的是Xcode7.1,部署目标是iOS9.1。该应用程序是“AreaCalculator”,它是用Swift编写的。我按照以下步骤设置了框架并导入了map:$sudogeminstallcocoapods在“AreaCalculator”下$touchPodfile我在Podfile中放入:source'https://github.com/CocoaPods/Specs.git'platform:ios,'9.1'pod'GoogleMaps'$pod安装在终端中:[!]无法加载插件规范/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-re

iOS GoogleMaps SDK - animateToCameraPosition 动画完成处理程序?

目前我正在使用适用于iOS的GoogleMapsSDK进行各种操作。调用时[self.googleMapsViewanimateToCameraPosition:[GMSCameraPositioncameraWithLatitude:LATITUDElongitude:LONGITUDEzoom:ZOOM]];是否有一个完成处理程序来确定动画是否完成?当然,我通过GMSMapViewDelegate获得了有关cameraPosition的更新,但我应该如何检查动画是否完成?-(void)mapView:(GMSMapView*)mapViewdidChangeCameraPositi

iOS GoogleMaps SDK - animateToCameraPosition 动画完成处理程序?

目前我正在使用适用于iOS的GoogleMapsSDK进行各种操作。调用时[self.googleMapsViewanimateToCameraPosition:[GMSCameraPositioncameraWithLatitude:LATITUDElongitude:LONGITUDEzoom:ZOOM]];是否有一个完成处理程序来确定动画是否完成?当然,我通过GMSMapViewDelegate获得了有关cameraPosition的更新,但我应该如何检查动画是否完成?-(void)mapView:(GMSMapView*)mapViewdidChangeCameraPositi

ios - 谷歌地图SDK : Undefined symbols for architecture x86_64

我正在尝试安装GooglemapSDK,但在运行时出现此错误:Undefinedsymbolsforarchitecturex86_64:"_CBAdvertisementDataManufacturerDataKey",referencedfrom:-[GMSx_PEBeaconScannercentralManager:didDiscoverPeripheral:advertisementData:RSSI:]inGoogleMaps(PEBeaconScanner.o)"_CBAdvertisementDataServiceDataKey",referencedfrom:-[GM