Javascript Jquery位置选择器自动完成不';无法在引导模式下工作

Javascript Jquery位置选择器自动完成不';无法在引导模式下工作,javascript,jquery,html,bootstrap-modal,jquery-location-picker,Javascript,Jquery,Html,Bootstrap Modal,Jquery Location Picker,我在引导模式中使用jquery位置选择器。它会打开地图,但自动完成建议不可见 下面给出了html和javascript代码 $timeout(函数(){ $('#onboardingModal').on('show.bs.modal',function(){ $(“#mappicker”).locationpicker({ 地点:{ 纬度:12.9715987, 经度:77.594562699998 }, 半径:200, 输入绑定:{ locationNameInput:$(“#locatio

我在引导模式中使用jquery位置选择器。它会打开地图,但自动完成建议不可见

下面给出了html和javascript代码

$timeout(函数(){
$('#onboardingModal').on('show.bs.modal',function(){
$(“#mappicker”).locationpicker({
地点:{
纬度:12.9715987,
经度:77.594562699998
},
半径:200,
输入绑定:{
locationNameInput:$(“#locationInput”)
},
enableAutocomplete:正确,
自动完成选项:{
组件限制:{country:'in'}
},
onchanged:函数(当前位置、半径、isMarkerDroped){
var addressComponents=$(this).locationpicker('map').location.addressComponents;
$scope.lat=$(this).locationpicker('map').location.latitude
$scope.lng=$(this).locationpicker('map').location.longitude
//UpdateControl(addressComponents);
},
});
});
});

地方

我在github的一个问题中得到了答案。需要将z索引添加到pac容器

.pac-container{z-index:2000 !important;}

参考资料:

我在github中的一个问题上得到了答案。需要将z索引添加到pac容器

.pac-container{z-index:2000 !important;}

参考资料:

您能提供一把小提琴来演示您的问题吗?您能提供一把小提琴来演示您的问题吗?