我有一個帶有標記的地圖,我想讓標記點擊表示一些基本信息。如何鏈接地圖標記到Sencha Touch上的詳細視圖(建築師2)
我是新來煎茶,我需要諮詢什麼,我應該監聽功能implemante來獲得同樣的效果,我在列表項點擊:
例如,這是我的maprender功能的代碼
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*/
});
,我希望把它在相同的方式工作作爲我的函數「itemtap」這是我在我的列表中使用...是這樣的:
onMyListItemTap: function(dataview, index, target, record, e, options) {
this.setActiveItem('detalji');this.down('#back').show();
this.down('#detalji').setData(record.data);
}