开发者

Removing GPolylines using google maps

I have a point where a Gpolyline line is drawn from a 开发者_开发问答marker to another point. After I click on it a second time, I want to remove the polyline. How do I remove the line after clicking on the marker a second time?

My pseudo-code is as follows:

  google.maps.event.addListener(markersArray[0], 'click', function() {
     'draw line to point'
  } );


Asked and answered on gis.stackexchange, specifically here. For those of you unaware of this site, and have any interest in GIS, or mapping, c'mon over!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜