扩大覆盖标记在谷歌地图? [英] Expanding Overlay Marker on Google Maps?

查看:88
本文介绍了扩大覆盖标记在谷歌地图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以得出叠加物品到谷歌地图就好了,看起来像一个形象:

I can draw overlay items onto google maps just fine, an image that looks like:

______
|    |
______
  \/

当\ /部分是针标志着纬度/经度的地图,在它的中间有一个画面上。我的问题是,有没有办法当用户点击它扩大呢?当然,我不得不更改为某种形式的对话或布局,改变它时,它被点击。

Where the "\/" part is the "pin" that marks the lat/lon on the map and a picture in the middle of it. My question is, is there any way to expand this when the user clicks on it? I'll of course have to change this to some kind of dialog or layout and change it when it gets clicked.

我想拥有它更小的像只用图像时没有点击,但点击时,它扩展了像第二个:

I want to have it smaller like that with just an image when not clicked on, but when it is clicked on it expands over like a second to:

--------------------------------------
| <image>                  <buttons> |
|                          <buttons> |
| <some info here>                   |
|                                    |
--------------------------------------
                 \/

这可能吗?

推荐答案

使用该...

  • Balloons without icons: https://github.com/jgilfelt/android-mapviewballoons#readme

带图标气球(延伸杰夫 Gilfelt的项目): https://github.com/galex/android-mapviewballoons

Balloons with icons (extends Jeff Gilfelt's project): https://github.com/galex/android-mapviewballoons

这篇关于扩大覆盖标记在谷歌地图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆