【发布时间】:2017-06-03 17:16:30
【问题描述】:
我正在使用 google 地方自动填充功能向用户显示位置建议。我使用以下代码向自动完成建议添加了自定义结果 -
$timeout(function(){
var el = angular.element('<div id="cantFind" class="pointer m-b-5">Can\'t find your location?</div>');
angular.element(".pac-container").append(el);
el.bind("mousedown", function() {
$scope.setEnterManualView(true);
});
}, 2000);
这里的问题是“找不到您的位置?”选项在建议中随机排列。我希望它仅作为最后的建议出现在最后。像这样 -
【问题讨论】:
标签: google-maps google-maps-api-3 google-places-api google-places