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?
I have create Map view in my application, every thing works fine except the
Share
Download the master branch of Rhodes Source code and you will see the annotations on Android.
To do this, follow these instructions:
Clone the master branch to your pc (you can also see these instructions):
Modify your RHO_HOME variable
Add the bin path to your path (evironment variable)
(Recommended: reboot your computer)
Add the file rhobuild.yml to the new Rhodes folder
Run
(you should see the new Rhodes folder/path here if you did everything correctly)
Run
and follow the instructions
Run a clean build of your application
I hope this helps you out. This solved my problems with annotations.