Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Image in annotation for google maps module

$
0
0

Hi, I am implementing a map using the google maps v2 for Android module, based off the docs for this module, I am attempting to include a picture in the annotation. I have tried both the rightbutton property and the image property, neither of which have been successful. Code below:

for (i=0; i< SearchJobs_data.TradesmanDetails.length; i++){
 
Annotations[i]= MapModule.createAnnotation({
    title:SearchJobs_data.TradesmanDetails[i].FName + " " + SearchJobs_data.TradesmanDetails[i].SName,
    subtitle:SearchJobs_data.TradesmanDetails[i].Trade,
    rightButton:Ti.Utils.base64decode(SearchJobs_data.TradesmanDetails[i].Photo)
});
 
}
I also have an equivalent table view which has the associated images from the webservice as a leftImage property for each row i.e.
Ti.Utils.base64decode(SearchJobs_data.TradesmanDetails[i].Photo)
So I'm unsure of what the problem may be

Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>