【发布时间】:2019-09-03 07:02:27
【问题描述】:
模块 '" "' 没有导出的成员 'NativeGeocoderReverseResult'。 L13:从'@ionic-native/geolocation/ngx'导入{地理位置}; L14: 导入 { NativeGeocoder, NativeGeocoderOptions,NativeGeocoderReverseResult} Error In Console
getUserLocation(){
let options: NativeGeocoderOptions = {
useLocale: true,
maxResults: 5
};
this.geolocation.getCurrentPosition().then(resp => {
this.nativeGeocoder.reverseGeocode(resp.coords.latitude, resp.coords.longitude, options)
.then((result: NativeGeocoderReverseResult[]) => {
this.userlocation = result[0].toString();
}, error => {
console.log(error)
});
}, error => {
console.log('Error getting location', error);
})
}
【问题讨论】:
标签: angular ionic-framework geolocation ionic3