问题标签 [google-maps-sdk-ios]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
157 浏览

ios - ios 谷歌地图不允许在其上添加图像

我想在谷歌地图上使用 imageview 放置静态图像。但它没有显示该图像。所以有什么想法可以在谷歌地图上放置 imageview 吗?提前致谢。请帮助

0 投票
3 回答
1749 浏览

ios - 将 ios 框架(如 Google Maps API)添加到 subversion 将不允许工作结帐

我将新的 Google Maps API 框架添加到项目中并将其签入 subversion。该框架具有通常的 Apple 结构,其中包括指向实际静态库和包含的别名文件。显然,现在 XCode 允许使用标准框架结构,因此您不必再将标头或库引用放入,只需添加框架就足够了。

但是,将它们存储在 subversion 中似乎不起作用,因为当您检出它们时,别名文件似乎会中断。

任何人都知道如何使这项工作?显然,我可以在框架中添加对包含目录和静态库的手动引用,即老式方式。由于人们现在将 SDK 作为适当的框架(Google,Crashlytics)提供,因此以某种方式工作会很好。

更新:框架内的符号链接应该存储在标记为 svn:special 的 SVN 中。然而,我从检查这个框架中得到的是一个到库的符号链接,但实际上是用于标题和资源的文件夹。这当然不再匹配 SVN 存储库。我想知道我的 svn 客户端(版本)是否搞砸了。

0 投票
2 回答
3616 浏览

google-maps-api-3 - 适用于 iOS 的 Google Maps SDK:重新定位 Google 徽标

对于 iOS 的新 sdk,Google 徽标是否可重定位,就像 Mapkit pre-iOS 6 一样?另外,条件允许吗?

谢谢

0 投票
4 回答
8671 浏览

ios - 如何实现 iOS 谷歌地图 SDK

我只是有一个问题,似乎无法在任何地方找到它。

我是 iOS 开发的新手,并尝试在我的应用程序中使用 Google 地图。

我浏览了他们在这里给你的例子。

但是正如您所看到的,它们设置self.view = mapView_;并且 UIView 类没有视图功能。

我希望地图位于另一个 ViewController 中的 UIView 中

我还没有失去你吗?无论哪种方式,这里都是一张照片。 在此处输入图像描述

因此,在视图(或空白)内部,我希望加载地图。

谢谢你们的帮助。

0 投票
2 回答
5888 浏览

ios - 调整 Google Maps MapView iOS 的大小

我尝试使用 GoogleMapsSDKDemos 中的代码将地图视图调整为屏幕上较小的矩形,但它似乎没有任何效果。这是我的代码:

mapView = [[GMSMapView alloc] initWithFrame:CGRectZero]; mapView.camera = [GMSCameraPosition cameraWithLatitude:38.98549782690282 longitude:-76.94636067188021 zoom:17];

倒数第二行似乎应该将 MapView 限制为一个小方块,但它仍然占据了整个屏幕。

0 投票
5 回答
10470 浏览

objective-c - Google Maps iOS SDK: How do I get accurate latitude and longitude coordinates from a camera's visibleRegion?

EDIT: This is now a confirmed bug with this SDK

I'm using version 1.1.1.2311 of the Google Maps for iOS SDK, and I'm looking to find the bounding latitude and longitude coordinates for the visible map on screen.

I'm using the following code to tell me what the current projection is:

From reading the headers, it seems that it may not be updated when the camera moves. Fair enough...

But, it appears to update each time the delegate method is called, so I attempted to plot the coordinates to test them...

For the following on my phone:

my app's current projection

The output of the NSLog from above gives me the following:

When plotting those coordinates using this I get a projection that seems off:

actual projection

These coordinates are consistent across app launches which leads me to believe that I'm either consistently doing something wrong, I'm misunderstanding what visibleRegion is, or I've discovered a bug. Anyone care to help me figure out which one it is?

0 投票
1 回答
278 浏览

ios - 如何确保谷歌地图 iOS SDK 不使用私有 API?

谷歌最近发布了适用于 iOS 的谷歌地图 SDK,我计划将其集成到我的 iphone 应用程序中。但我想确保谷歌在他们的 API 中不使用任何私有 API 以避免被苹果拒绝。

有什么方法或地方可以确认 Google Maps iOS SDK 不使用私有 API 吗?

0 投票
2 回答
1961 浏览

ios - 在信息窗口中单击 iphone

我想在 iphone 谷歌地图中点击信息窗口时显示一个小窗口。我希望当用户点击标记时,会出现信息窗口。在该信息窗口的水龙头上,应该会出现另一个窗口。在android中,有一个 OnInfoWindowClickListener 方法。我们在 iOS 中有什么这样的?

0 投票
1 回答
1339 浏览

ios - iOS - GMSMapView 显示语言

如何以不同的语言显示谷歌地图标签?
不是默认语言,取自国际设置?

0 投票
7 回答
36241 浏览

ios - 在 Google Maps SDK for native iOS/objective C 中的 InfoWindow/Marker 上添加 Click 事件

简单的问题

我正在开发一个适用于 iOS 的应用程序,我在其中嵌入了适用于原生 iOS 的新 Google 地图。一切都很好,除了一个问题,我在这里和谷歌都找不到本地 IOS/Objective-C 的合适解决方案(如果有,请告诉我,抱歉打扰你)

我想要什么:我希望用户单击打开信息窗口的标记。如果他单击或点击信息窗口后,它应该打开一个带有更多信息的新 UIView。

我怎样才能做到这一点?

感谢您的建议