如何将地图与Ionic集成

时间:2018-09-15 11:17:55

标签: ionic-framework

我正在开发一个Ionic应用,应该向用户显示最近的“ NGO”。

我正在这样做:

interests = [
    { value: 'AGING-1', name: 'AGING', id: "1" },
    { value: 'AIDS-2', name: 'AIDS', id: "2" },
    { value: 'ALCOHOLISM-3', name: 'ALCOHOLISM', id: "3" },
    { value: 'ALLERGY-4', name: 'ALLERGY', id: "4" },
    { value: 'ALTERNATIVE MEDICINE-5', name: 'ALTERNATIVE MEDICINE', id: "5" },
]

isCheckBoxCheckedForUser(interest) {
    var number = this.editUserDetails.basics[0].interest.length;
    var match = false;
       for (let selectinterest of this.editUserDetails.basics[0].interest) {
        if(this.temp <= number){
       if(selectinterest === interest){
        match = true;
        }else{  
        }
        this.temp++;
     }
    }
    this.temp = 0;
    return match;
  }

我的问题是我可以在浏览器中看到我的功能正常运行,但在ionic-lab浏览器中却无法正常运行,在生成的apk中也无法正常运行。

在ionic-lab镀铬标签中,我跌破警告/错误: polyfills.js:2由于对当前文档应用了功能策略,地理位置访问被阻止。

1 个答案:

答案 0 :(得分:0)

地理定位不适用于离子服务或离子实验室,这就是发出警告的原因。尝试使用Input: adebc Current output:eebc android或ios

进行测试
相关问题