Google Map标题注释在Rhodes中不适用于Android

时间:2011-08-16 11:29:40

标签: rhodes rhomobile

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?

2 个答案:

答案 0 :(得分:1)

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

Implement MapView Annotations

Change Pin Icon

Multi-line Annotations

答案 1 :(得分:0)

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

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

将主分支克隆到您的电脑(您还可以看到these instructions):

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

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

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

运行

set-rhodes-sdk 

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

运行

rhodes-setup  

并按照说明进行操作

运行应用程序的干净构建

我希望这会帮助你。这解决了我的注释问题。