Set snapToPixel defaut value to true

This commit is contained in:
Éric Lemoine
2014-05-07 09:48:06 +02:00
parent 596e06ed4e
commit 6cd403945a
6 changed files with 47 additions and 14 deletions
+7 -3
View File
@@ -1,5 +1,3 @@
// FIXME decide default value for snapToPixel
goog.provide('ol.style.Circle');
goog.require('goog.dom');
@@ -68,13 +66,19 @@ ol.style.Circle = function(opt_options) {
*/
this.size_ = [size, size];
/**
* @type {boolean}
*/
var snapToPixel = goog.isDef(options.snapToPixel) ?
options.snapToPixel : true;
goog.base(this, {
opacity: 1,
origin: [0, 0],
rotateWithView: false,
rotation: 0,
scale: 1,
snapToPixel: undefined
snapToPixel: snapToPixel
});
};