Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

ERROR TypeError: Cannot read property 'latitude' of undefined

$
0
0

Bonjour,

j’aimerais utiliser l’API de google pour afficher la carte de geolocalisation mais je reçcois l’erreur suivante:

voilà le code:
page.html

<ion-header [translucent]=“true”>





Détails locations


Title : {{currentPlace.title}} City : {{currentPlace.city}} Country : {{currentPlace.country}} Keywords : {{currentPlace.keyword}}

model.ts

export interface Place{
title:string;
city?:string;
country?:string;
keyword?:string;
selected?:boolean;
timestamp?:number;
photos?:string;
coodinates?:{
latitude:number;
longitude:number;
};

}

merci d’avance

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>