Use constant for CSS class 'ol-unselectable'.

This commit is contained in:
Marc Jansen
2013-03-11 17:01:42 +01:00
parent 837aa7512b
commit 5e5e4d110a
7 changed files with 22 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ goog.require('goog.array');
goog.require('goog.dom');
goog.require('goog.style');
goog.require('goog.vec.Mat4');
goog.require('ol');
goog.require('ol.Size');
goog.require('ol.layer.ImageLayer');
goog.require('ol.layer.TileLayer');
@@ -38,7 +39,7 @@ ol.renderer.canvas.Map = function(container, map) {
this.canvas_ = goog.dom.createElement(goog.dom.TagName.CANVAS);
this.canvas_.height = this.canvasSize_.height;
this.canvas_.width = this.canvasSize_.width;
this.canvas_.className = 'ol-unselectable';
this.canvas_.className = ol.CSS_CLASS_UNSELECTABLE;
goog.dom.insertChildAt(container, this.canvas_, 0);
/**