2011-08-16 9 views
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? 

答えて

0

はロードスソースコードのmasterブランチをダウンロードして、あなたは、Android上の注釈が表示されます。

これを行うには、次の手順に従います。

クローンmasterブランチをあなたのPCに(あなたもthese instructionsを見ることができます):

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

を変数 をごRHO_HOMEを修正し、あなたのパスにbinパスを追加します。 (環境変数)

新しいRhodesフォルダにrhobuild.ymlファイルを追加します。

実行

set-rhodes-sdk 

(あなたはすべてを正しくなかった場合は、ここで新しいロードスフォルダ/パスが表示されます)

実行

rhodes-setup 

と指示

実験Aに従ってくださいアプリケーションのクリーンビルド

これがあなたを助けてくれることを願っています。これは、アノテーションに関する私の問題を解決しました。

+0

javascript googleマップを使用してこの問題を解決しましたAPI。あなたの応答のためにありがとう –

+0

あなたは答えてくださいとして質問をマークできますか? – marimaf

1

現在のところAndroidの代替手段はありません。しかし彼らは、彼らのレーダーにいくつかの開発項目があります。

Implement MapView Annotations

Change Pin Icon

Multi-line Annotations

+0

申し訳ありませんが、 "レーダー"の意味は何ですか?私たちのロードアプリケーションでは、上記の3つのものを(開発中であっても)使用できますか? –

+0

「レーダー」とは開発項目のバックログにあることを意味します。それらのアイテムは開発されていないため使用できません。彼らは要求されています(したがって、上にリンクされたオープンな開発ユーザのストーリー)。 – Geoffrey

+0

ありがとう@Geoffrey .....今私はGoogleマップのv3に移動しましたが、ここでも地図は、Androidのために働いていません....この問題を解決するための何かの理由... –

関連する問題