locked
How to display more than one location on google map? RRS feed

  • Question

  • 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);

    Tuesday, January 7, 2020 6:11 PM

Answers

  • User696604810 posted

    thank you for reply

    can you please help me

    sample for only one point location

    i need to set multiple pen location of google map

    so how to do that 

    i suggest resume my code above if possible

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 9, 2020 2:37 AM

All replies