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

  • SEARCH
  • Home
  • 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 7929817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:12:48+00:00 2026-06-03T20:12:48+00:00

I have a map with a marker, and i want to make the marker

  • 0

I have a map with a marker, and i want to make the marker clicktable to show some basic info.

I am new to Sencha, and I need advice what should I implemante in listener function to get the same effect as i click on list item:

for example, this is my code of maprender function

var lat = 37.428607;
var lng = -122.169344;


var latLng = new google.maps.LatLng(lat, lng);


var marker = new google.maps.Marker({
    position: latLng,
    map: gmap,
    draggable: false,
    animation: google.maps.Animation.DROP,
    title: 'cool'
});


var contentString = 'bla bla bla';


var infowindow = new google.maps.InfoWindow({
    content: contentString
});


google.maps.event.addListener(marker, 'click', function() {
      /* here comes something that will make my detail list visible with the marker details*/
});

and i want to make it work in the same way as my function for “itemtap” which i use in my list… something like this:

onMyListItemTap: function(dataview, index, target, record, e, options) {
this.setActiveItem('detalji');this.down('#back').show();
this.down('#detalji').setData(record.data);
}
  • 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-06-03T20:12:50+00:00Added an answer on June 3, 2026 at 8:12 pm

    There is a great example on Github for Sencha Touch 1…I believe it’s called World Map. If you unzip that (the app is in one of the many folders) you can see a Google map wil multiple custom markers. This project is very useful for learning, as it not only shows custom map markers, but also popup overlays on a marker click.

    I have yet to adapt it to Sencha Touch 2, but it shouldn’t be too difficult…here is some example code (after multiple markers have been added):

       google.maps.event.addListener(marker, 'click', function() 
                    {
            if (!this.popup) 
                        {
              this.popup = new Ext.Panel(
                                {
                floating: true,
                modal: true,
                centered: true,
                width: 500,
                styleHtmlContent: true,
                scroll: 'vertical',
                items:[{
                  xtype:'button', 
                  ui:'round',
                  text:'See Country Profile',
                  handler:goToCountryWrapper,
                  scope : this
                },
                (new countryOverlay(country)).overlayPanel
                ],
                    layout: {
                  type: 'auto',
                  padding: '55',
                  align: 'left'
                },
                dockedItems: [{
                  dock: 'top',
                  xtype: 'toolbar',
                  title: country.title
                  }],
              });
            };
            this.popup.show('pop');
          });
    

    Also I think from what I understand about Sencha Touch 2, you would have to put a listener in your map controller (MyApp.map.controller file)….read up about the refs, as the refs ‘finds’ the marker(s) you have defined and adds a listener to the item.

    If you have any progress please post your findings 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a multiple marker Google map, it works fine but i want set
I have map with multiple different colors markers with some info window. Everything works
I have a collsion map, and some places that I want to be light
I have displayed the locations on map with marker images, but now i want
On my map I have some Markers. Onclick I want to get the markers
I have created a map marker that is positioned on my map by finding
I have a google map using V3 of the API. It has one marker
I'd like to have one default marker on the map to indicate an address,
I have a map with various markers and i need to be able to
I have a Google V3 map which uses steetView and some map markers. The

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.