开发者

remove polyline from google map between two points

I have two arrays of locations. and i want to display two different polylines on single map.

but when i tried for that there is one polyline between last location of first array to first location of second array.

So, i get two different polylines connected by one unwanted polyline.

so i want to remove that polyline.

help me.

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;
                             }
                            }
                        }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜