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.Icon');
goog.provide('ol.style.IconAnchorOrigin');
goog.provide('ol.style.IconAnchorUnits');
@@ -124,12 +122,18 @@ ol.style.Icon = function(opt_options) {
*/
var scale = goog.isDef(options.scale) ? options.scale : 1;
/**
* @type {boolean}
*/
var snapToPixel = goog.isDef(options.snapToPixel) ?
options.snapToPixel : true;
goog.base(this, {
opacity: opacity,
origin: origin,
rotation: rotation,
scale: scale,
snapToPixel: undefined,
snapToPixel: snapToPixel,
rotateWithView: rotateWithView
});