How to get Lat Long of moving object on google maps?

后端 未结 2 1263
野的像风
野的像风 2021-01-23 18:53

I am working on Google maps, and in my map I have build a moving object using Animating Symbols article

my question is that I want to get the location of moving object (

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-23 19:46

    Unfortunately i don't think you can get Lat Long of a SymbolPath with the Google Maps API.

    If you console.log the icons[0] you will see that the icon object only have path, scale and strokeColor:

    console.log(icons[0].icon)
    
    { 
      path: 0, 
      scale: 8, 
      strokeColor: "#393"
    }
    

提交回复
热议问题