aboutsummaryrefslogtreecommitdiff
path: root/web/arrow.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-10 16:49:36 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-10 16:49:36 +1200
commit154d215b35bfabc7bd159ae7444e920f8f999924 (patch)
tree33466fb059ffa11ca6cd4c9ec921a3518c117d57 /web/arrow.js
parent43a221eba65973cac3737aa6853ed8ba11592f96 (diff)
downloadtrackermap-server-154d215b35bfabc7bd159ae7444e920f8f999924.tar.gz
trackermap-server-154d215b35bfabc7bd159ae7444e920f8f999924.tar.bz2
trackermap-server-154d215b35bfabc7bd159ae7444e920f8f999924.zip
Update openlayers library version
Diffstat (limited to 'web/arrow.js')
-rw-r--r--web/arrow.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/web/arrow.js b/web/arrow.js
index 1fd2b3c00..5c09e2ce0 100644
--- a/web/arrow.js
+++ b/web/arrow.js
@@ -1,16 +1,12 @@
goog.provide('ol.style.Arrow');
-goog.require('goog.asserts');
goog.require('ol');
goog.require('ol.color');
goog.require('ol.dom');
goog.require('ol.has');
goog.require('ol.render.canvas');
-goog.require('ol.style.AtlasManager');
-goog.require('ol.style.Fill');
goog.require('ol.style.Image');
goog.require('ol.style.ImageState');
-goog.require('ol.style.Stroke');
@@ -25,7 +21,7 @@ goog.require('ol.style.Stroke');
*/
ol.style.Arrow = function(options) {
- goog.asserts.assert(options.radius !== undefined,
+ goog.DEBUG && console.assert(options.radius !== undefined,
'must provide "radius"');
/**
@@ -363,7 +359,7 @@ ol.style.Arrow.prototype.render_ = function(atlasManager) {
var info = atlasManager.add(
id, size, size, this.draw_.bind(this, renderOptions),
renderHitDetectionCallback);
- goog.asserts.assert(info, 'arrow size is too large');
+ goog.DEBUG && console.assert(info, 'arrow size is too large');
this.canvas_ = info.image;
this.origin_ = [info.offsetX, info.offsetY];