Sencha touch 2: map marker names

I can add markers to cards, and the marker output looks fine, but I don’t see any names on them!

I go through my store and add them like this:

           //plot the points on the map
           for (var i = 0; i < this.getCount(); i++)
           {                 
               var position = new google.maps.LatLng(this.getAt(i).data.Latitude, this.getAt(i).data.Longitude); 
               var marker = new google.maps.Marker({
                    position: position,
                   title : this.getAt(i).data.LocationDesc,
                   map: Ext.ComponentManager.get('jobmap').getMap()
               });
           }

I see pins, but not a textual name! The data is fine, and I even tried hard-coded strings. Is there any overlay / mask property? How to get headers?

EDIT : the solution below solves the problem, but I also thought that I would choose a solution to the problems associated with this.

If you want to place information pop-ups on multiple markers, you need to read the following: Trying to link multiple InfoWindows with multiple markers on a Google map and crash

, ! API Google InfoWindow

+3
1

MarkerOptions Docs, title marker rollover.

, smartphone, mouseover?

, infoWindow click pins/markers .

:

var infoWindow = new google.maps.InfoWindow({ content:'_address_' }),

click ,

google.maps.event.addListener(marker, 'click', function() {
        infoWindow.open(map, marker);
});
0

All Articles