私は2つの場所の配列を持っています。1 つのマップに 2 つの異なるポリラインを表示したいと考えています。
しかし、私がそれを試みたとき、最初の配列の最後の場所と2番目の配列の最初の場所の間に1つのポリラインがあります。
そのため、1 つの不要なポリラインで接続された 2 つの異なるポリラインを取得します。
だから私はそのポリラインを削除したい。
助けて。
if(index==0) // first location of second array
{
if(testarray != null){
alert('hityhd');
alert(testarray);
testarray.push(newLatlng);
if( testarray[0].line ) {
map.removeOverlay( testarray[0].line );
testarray[0].line = null;
}
}
}