Hi All
I am trying to get the coordinates of each vertex and separate they by putting all the latitudes on one field and all the longitudes on one field. This is who I tried to do it but it is not dong what I want it to do:
for (var i = 0; i < gra.geometry.rings.length; i++){
for (var p = 0; p < gra.geometry.rings.length; p++){
crmLatitude = String(gra.geometry.rings);
crmLongitude = String(gra.geometry.rings
);
var LatLon = String(gra.geometry.rings
);
console.log(LatLon);
latlon = LatLon;
}
How can I do it? Please assist.
Kind Regards
Siyabonga Kubeka