0
I have create Map view in my application, every thing works fine
except the title annotation

my rhodes version is 3.0.2
Here is my code

 @customer = User.find(@params["id"])
    map_params = {
              :settings => {:map_type => "hybrid",:region =>
[@customer.lat, @customer.lag, 0.2, 0.2],
                            :zoom_enabled => true,:scroll_enabled =>
true,:shows_user_location => false,
                            :api_key => 'Google Maps API Key'},
              :annotations => [{
                                  :latitude => @customer.lat,
                                  :longitude => @customer.lag,
                                  :title => "#{@customer.name}",
                                  :subtitle => "View customer",
                                  :url => "/app/User/
{#{@customer.object}}"
                              }]
         }

    MapView.create map_params

while googling i found title annotations is not yet implemented in
Android, is there any other alternative way to do it?

In my application  i have to do like this......
[Screen Image][1]

Is it possible?
4

2 回答 2

1

Android 目前没有替代品。然而,他们有一些开发项目在他们的雷达上:

实现 MapView 注释

更改图钉图标

多行注释

于 2011-08-16T23:06:53.747 回答
0

下载 Rhodes 源代码的 master 分支,您将在 Android 上看到注解。

为此,请按照以下说明操作:

将主分支克隆到您的电脑(您也可以查看这些说明):

$ git clone git://github.com/rhomobile/rhodes.git
$ cd rhodes

修改您的 RHO_HOME 变量将 bin 路径添加到您的路径(环境变量)(建议:重新启动计算机)

将文件 rhobuild.yml 添加到新的 Rhodes 文件夹

set-rhodes-sdk 

(如果你做的一切正确,你应该在这里看到新的 Rhodes 文件夹/路径)

rhodes-setup  

并按照说明

运行干净的应用程序构建

我希望这能够帮到你。这解决了我的注释问题。

于 2011-09-28T22:18:00.763 回答