success(function(data) {
angular.forEach(data.response.venues, function(item) {
var pin = { latitude: parseFloat(item.location.lat),
longitude: parseFloat(item.location.lng),
title: item.name,
id: item.id
}
pin.options = {
icon: $dynamicConstants.getCdnImagesUrl() + query + '.png',
labelStyle: { 'overflow': 'visible' }
};
$scope.map.markers.push(pin);
})
}).error(function() {
});请问如何function(data)外获取到var pin的值?
添加回答
举报
0/150
提交
取消