Convert String to latlng google maps

后端 未结 2 1714
野趣味
野趣味 2021-01-17 16:20

I want to convert a String with a pattern like \"(53.324523, 43.252352)\" into a latlng. I already found the right function:

var input = latlngArray[i];
var          


        
2条回答
  •  不思量自难忘°
    2021-01-17 17:02

    Quick fix after var input. Looks like the '(' is messing up the lat conversion:

    input = input.replace('(','');
    

提交回复
热议问题