问题标签 [callout]

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 回答
147 浏览

maps - 谷歌地图信息窗口标注有几个像素

这是我第一次在 stackoverflow 上发帖。(有点紧张)

我在谷歌地图的信息窗口标注框周围遇到问题,如下图所示:信息 窗口标注

大约有 2-3 像素的标注指针从信息框底部伸出。

我之前确实遇到了渲染问题,并且已经通过将“max-width:none”应用于地图 div 来解决。没有改变其他任何东西。

如果我能得到一些帮助来解决这个问题,那就太棒了......在此先感谢!

0 投票
1 回答
407 浏览

soap - SOAP 标注以静默方式失败

我已经成功地从我的 WSDL 生成了一个 Apex 类,并且能够通过手动设置 HTTP 授权标头在远程服务器上进行身份验证。我已经在远程服务器上仔细检查了......</p>

  • HTTP 身份验证工作正常
  • 网络服务返回正确的响应 XML
  • 没有错误被抛出(整个代码中没有 try/catch 语句)

但是,如果我检查 web 服务调用的结果,我总是会得到一个“空”对象。我怀疑 Salesforce 无法从 XML 响应中生成对象。关于为什么会这样以及我可以尝试什么的任何想法?有人已经有同样的问题了吗?

这就是我打电话的方式:

0 投票
0 回答
148 浏览

ios - MKViewAnnotation 自定义标注

我尝试创建自己的自定义标注。这意味着,我尝试创建一些新的东西而不是黑色系统标注。

在 MKAnnotationView 文档中,您可以阅读:“要提供自定义标注视图,请覆盖 leftCalloutAccessoryView 方法并使用它来返回视图。”

但这也许是我想要的其他东西。你能给我一个建议,我怎样才能达到我的目标?

谢谢你。

否定

0 投票
2 回答
853 浏览

r - R中的标注文本

我想将标注文本添加到我的 R 图中。例如,我有一些情节:

在此处输入图像描述

我想添加一些这样的标注文本:

在此处输入图像描述

有一些标准的方法吗?

0 投票
1 回答
961 浏览

ios - 标注在地图中默认不显示

我试图通过不单击图钉在图钉上显示标注。简而言之,我想在图钉放置在地图上时显示标注。

这是我正在使用的代码:

任何帮助都是不言而喻的。

0 投票
0 回答
100 浏览

ios - 用户无法访问自定义地图标注视图

我正在尝试做自定义地图标注视图:

所以我的标注无法访问,无法按下按钮等......

0 投票
0 回答
113 浏览

c++ - 文档中的文本框和行布局

我的程序应该在文档中以适当的方式放置一组带行的文本框。您可以在下面找到一个示例:

示例:带有标注箭头的文本框

这是我的程序可用的信息:

  • 文本框的大小
  • 他们的箭头应该指向的目标区域。
    • 箭头指向该区域的哪个点并不重要(中心,最近的边界)

现在我正在寻找一种布局算法,为我提供以下信息:

  • 放置文本框的位置
  • 在文本框中附加线条的位置
  • 可选:在目标框上附加线的位置(即要指向的确切点)
  • 可选:折线的位置

除此之外,还应遵守以下条件:

  • 文本框不应相互重叠或目标框
  • 文本框可能与任何其他文档内容重叠
  • 可选:最小线长
  • 可选:线不应相交

是否有适合我可以用作起点的此类问题的布局算法?

在此先感谢您的想法!

0 投票
3 回答
39406 浏览

ios - Custom MKAnnotation callout bubble with button

I'm developing app, where user is localized by gps and then he is asked, whether he is located in specific place. To confirm this, callout bubble is presented to him straight away, asking him, if he is at specific place.

As there is alot of similar questions, I was able to do custom callout bubble: Custom callout bubble

My problem: button is not "clickable" My guess: because this custom callout is higher than standard callout bubble, I had to place it in negative "frame", therefore button cannot be clicked. Here is my didSelectAnnotationView method

CalloutView is just simple class with 2 properties(label that shows name of place and button) and with xib.

I have been doing this custom callout bubble for a few days. I tried using "asynchrony solutions" solution but I was unable to add any other kind of button then disclosure button.

My next attempt, was to find something that was easier than asynchrony solutions and modify it to my use. Thats how I found tochi's custom callout.

Tochi's custom callout

Based on his work, I was able to customize his bubble and change info button for my custom button. My problem however remained the same. In order to place my custom callout view on top of the pin, I had to give it negative frame, so my button was "clickable" only in bottom 5 pixels. It seems, that I have to maybe dig deeper into ios default callout bubble, subclass it and change frame of callout in there. But I'm really hopeless now.

If you guys could show me the right way, or give me advice, I'll be glad.

0 投票
0 回答
186 浏览

iphone - 如何在注释标注气泡上显示 3 行

我想在map view annotation呼叫气泡上显示 3 行。

这意味着我想在调用气泡中添加一个带有标题、子标题的额外行。

请给我解决方案。

0 投票
1 回答
81 浏览

iphone - 数据没有进入 ios 中的 Annotation 方法

如何将数据发送到

方法。一旦请观察我的代码并给我解决方案。