Permalink
Browse files

[Path] Make the line draggable

  • Loading branch information...
1 parent b70259f commit 2ac3071c4273c943b4d8b12e4c0af4365fa76682 @vicb committed Jan 28, 2013
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/vgps3/plugins/path/path.js
@@ -152,7 +152,14 @@ vgps3.path.Path.prototype.clickHandler_ = function(event) {
vgps3.path.Path.prototype.createLine_ = function() {
var that = this;
- this.line_ = new google.maps.Polyline({editable: true, map: this.gMap_, strokeColor: 'black', strokeWeight: 4, zIndex: 100});
+ this.line_ = new google.maps.Polyline({
+ editable: true,
+ draggable: true,
+ map: this.gMap_,
+ strokeColor: 'black',
+ strokeWeight: 4,
+ zIndex: 100
+ });
google.maps.event.addListener(this.line_, 'mousemove', goog.bind(that.updateControl_, that));

0 comments on commit 2ac3071

Please sign in to comment.