私はopenlayersで作業しており、マップ上のポイントを取得できますが、個々の座標を取得できません.
feat = drawLayer.features[0];
var geom = feat.geometry;
var loca = geom.toShortString();
var long = loc.substr(0,9);
alert(geom.toShortString());//returns the correct coords in xx.xxx,xx.xxx format
alert(loca);//returns 2 very large numbers in xx.xxx,xx.xxx format
alert(long);//returns the first, incorrect number
私は何を間違っていますか?どうすれば修正できますか?
ありがとう