Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5954585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:59:31+00:00 2026-05-22T17:59:31+00:00

I have made an application in titanium framework for Google Maps. I have multiple

  • 0

I have made an application in titanium framework for Google Maps. I have multiple locations on the map and which are shown as annotaion/pinpoints. I have taken click event of the annotation as well. Annotaions will show data in tableview in the next screen.when I am coming back to the Google Maps screen, I have to click back button twice rather than once.

Queries :

1) can any body help me out how to handle the back event which should come back by 1 click only instead of 2 clicks and which should not render the data 2 times on 2 clicks of back button.Here same screen appears 2 times for data on back button event.

2) If i have many annotations on the map, then how to get the information of the same/particular pinpoint/annotation , when it does the click event and should show data of pinpoint as tableview in the next screen.(i.e. if i have FOR LOOP and from that loop when it shows us the multiple annotation/pinpoint, all the annotation should get all the details and should shown its own data to the next screen tableview.)

Any useful code or link will be appreciated…!!!

I have given code snippet below :

mapview.addEventListener('click', function(evt) {
    var annotation = evt.annotation;
    var title = evt.title;
    var clickSource = evt.clicksource;
    // alert(annotation + 'tit'+title+'clickSource'+clickSource);
    // alert("Btn Pressed");

    if(evt.clicksource == 'rightButton') {
        Titanium.App.Properties.setString("latitude",latitude.item(0).text);
        Titanium.App.Properties.setString("longitude",longitude.item(0).text);
        Titanium.App.Properties.setString("city",city.item(0).text);
        Titanium.App.Properties.setString("address",address.item(0).text);
        Titanium.App.Properties.setString("OwnerInstitution",OwnerInstitution.item(0).text);
        Titanium.App.Properties.setString("TerminalDesc",TerminalDesc.item(0).text);
        Titanium.App.Properties.setString("State",state.item(0).text);
        Titanium.App.Properties.setString("Zip",Zip.item(0).text);
        Titanium.App.Properties.setString("Charge",Charge.item(0).text);

    var tab = Titanium.UI.currentTab;
        var win1 = Titanium.UI.createWindow({
            url:'ATMDetails.js',
            title:'ATM Details',
            // latitude:win1.latitude
        });
        tab.open(win1, {
            animated:true
        });
    }
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:59:31+00:00Added an answer on May 22, 2026 at 5:59 pm

    For Issue 1 I am not getting your point correctly.

    For Issue 2- As i understand, you want to show the detail of particular annotaion where the user clicked.
    Solution:
    The function where you load all the information using for loop define an array which should store the data of specific anotaion. like

    annotations = []; //updated
    for (i=0; i < yourfeedsData.length; i++) {
    
          var detailData= [];
    
            //Your data
             var latitude =   latitude.item(0).text;
             // all list of your data .......
    
    
            // creating annotaions 
            var annotaion = Titanium.Map.createAnnotation( { 
                     title:'Your title',
                    animate:true
                });  
    
          // pushing the data to array ..... all your values like,
          detailData.push({lat:latitude,...... });
    
          // setting data to your annotaion object
          annotaion.detailData=detailData; 
    
          // creating annotation array
              annotations[i] = annotaion ; //updated
         }
    
        your_mapView.addAnnotations(annotations); // updated
    

    and in your click event, get the annotation data and pass it to detail your window. And use that detail data to show in list.

     // get the detail data
        var detailData = evt.annotation.detailData;
     if(evt.clicksource == 'rightButton') {
    
                    var tab = Titanium.UI.currentTab;
                    var win1 = Titanium.UI.createWindow({
                        url:'ATMDetails.js',
                        title:'ATM Details',
                        //latitude:win1.latitude
                    });
                   // PASS THE DATA TO YOUR WINDOW  
                   win1 .detailData = detailData;
    
                    tab.open(win1, {
                        animated:true
                    });
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started learning titanium framework.I was making application into iphone.I have made application
I have made an application, which keeps getting updated frequently. So every time a
I have made some changes to a Classic ASP application which breaks foreign letters
I have made an application which showns a lists of client. You can open
I have made an application which displays Images .Now I want to implement zoom
Hey!! I have made an application through which I am publishing an audio file
I have made a calendar application for the iPhone in which I have a
hello I have made application in Google Api level 7 and is running normally
I have made an application which has tabs like in HelloTabActivity, there is also
I have made a custom UserControl i Vb.net (windows application). How can I add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.