User696604810 posted
problem
my problem is cannot display locations below on google map so what i do .
I already have have locations on data location object as below :
Result points for latitude and longitude from browser for datalocation
latitude longtude
5.2951916,100.28825170000005,
30.788892,120.632503,
13.658933,100.634069,
10.328074,123.983185,
31.332119,120.723465
my code as below
on component.ts
export class ManagelocationsComponent implements OnInit, AfterViewInit {
this.partDetailsService.getLocationData(locationArr).subscribe(res => {
res.forEach((item, index) => {
let dataLocation = res[index]['_source']['GPS1'];
})
//how to display points result on google map
console.log("dataLocation values is" + dataLocation);