0
这个code在WordPress/PHP中工作正常,但是当我得到coords
动态时,它停止工作。WordPress/PHP中的多边形地图
我做了一个alert
的JavaScript变量,它给出了我在WordPress自定义字段中插入的数据。
可能是有一个解析错误..
我得到这样的数据。
var coords = $("#map").attr("data-coordinates");
// Define the LatLng coordinates for the polygon.
var triangleCoords = [
coords
];
有没有人可以帮助我。
以下数据存储: {LNG:-113.47113103222,纬度:53.531600034458},{ LNG:-113.46934897258,纬度:53.530568304362},{ LNG: -113.46835550221,lat:53.529993448717}, {lng:-113.46689425672,lat:53.529374507025}, –