Skip to content

Commit

Permalink
(wip) gmf-drawfeature - default properties
Browse files Browse the repository at this point in the history
  • Loading branch information
adube committed Apr 1, 2016
1 parent fccac2b commit 1b0e5a1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions contribs/gmf/src/directives/drawfeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,17 @@ gmf.DrawfeatureController.prototype.handleDrawEnd_ = function(type, event) {
default:
break;
}
// FIXME - label || name ?
feature.set('label', name + ' ' + (this.features_.getLength() + 1));

// FIXME - set other default properties
// ...
// FIXME - use constants
feature.set('angle', 0);
feature.set('color', '#ed1c24');
feature.set('opacity', 0.2);
feature.set('show_measure', false);
feature.set('size', 10);
feature.set('stroke', 1);

// FIXME - set style here...

this.features_.push(feature);
};
Expand Down

0 comments on commit 1b0e5a1

Please sign in to comment.